forked from External/mage
More changes to user and session handling. Fixes somes issues with client reconnect and connecting other instance.
This commit is contained in:
parent
180bae323d
commit
df04bf829d
5 changed files with 47 additions and 17 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue