MCPcopy Create free account
hub / github.com/catabriga/graphwar / checkTimeout

Method checkTimeout

src/Graphwar/ServerConnection.java:43–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41 }
42
43 public boolean checkTimeout()
44 {
45 if(System.currentTimeMillis() - connection.getLastReceivedTime() > Constants.TIMEOUT_DROP)
46 {
47 return true;
48 }
49
50 return false;
51 }
52
53 public boolean checkStayAliveTime()
54 {

Callers 1

runMethod · 0.95

Calls 1

getLastReceivedTimeMethod · 0.80

Tested by

no test coverage detected