Skip to content

Commit

Permalink
set session last nano time when read
Browse files Browse the repository at this point in the history
  • Loading branch information
大卫 committed Oct 22, 2017
1 parent edc3bd3 commit 4759cb5
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ public class NatSessionManager {
static final SparseArray<NatSession> Sessions = new SparseArray<NatSession>();

public static NatSession getSession(int portKey) {
NatSession session = Sessions.get(portKey);
if (session!=null) {
session.LastNanoTime = System.nanoTime();
}
return Sessions.get(portKey);
}

Expand Down

0 comments on commit 4759cb5

Please sign in to comment.