优化session处理
This commit is contained in:
@@ -333,7 +333,6 @@ public class MemorySessionStore implements ISessionsStore {
|
|||||||
|
|
||||||
Session session = sessions.get(clientID);
|
Session session = sessions.get(clientID);
|
||||||
|
|
||||||
if (session == null || !session.username.equals(username)) {
|
|
||||||
if (session != null && !session.username.equals(username)) {
|
if (session != null && !session.username.equals(username)) {
|
||||||
if (userSessions.get(username) != null) {
|
if (userSessions.get(username) != null) {
|
||||||
userSessions.get(username).remove(clientID);
|
userSessions.get(username).remove(clientID);
|
||||||
@@ -346,7 +345,6 @@ public class MemorySessionStore implements ISessionsStore {
|
|||||||
session = databaseStore.createSession(username, clientID, clientSession, platform);
|
session = databaseStore.createSession(username, clientID, clientSession, platform);
|
||||||
}
|
}
|
||||||
sessions.put(clientID, session);
|
sessions.put(clientID, session);
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
if (session.getDeleted() > 0) {
|
if (session.getDeleted() > 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user