More changes to user and session handling. Fixes somes issues with client reconnect and connecting other instance.

This commit is contained in:
LevelX2 2014-08-29 01:46:53 +02:00
parent 180bae323d
commit df04bf829d
5 changed files with 47 additions and 17 deletions

View file

@ -240,6 +240,9 @@ public class User {
public void updateLastActivity() {
lastActivity = new Date();
if (userState == UserState.Disconnected) { // this can happen if user reconnects very fast after disconnect
userState = UserState.Reconnected;
}
}
public boolean isExpired(Date expired) {