优化用户session

This commit is contained in:
heavyrain2012
2019-11-27 10:30:39 +08:00
parent 9aaaa71ce9
commit f9d5c861ce
9 changed files with 151 additions and 43 deletions
@@ -82,7 +82,7 @@ public class RouteAction extends Action {
MemorySessionStore.Session session = sessionsStore.sessionForClientAndUser(uid, cid);
if (session == null) {
ErrorCode errorCode = sessionsStore.createNewSession(uid, cid, true, false, 0);
ErrorCode errorCode = sessionsStore.loadActiveSession(uid, cid);
if (errorCode != ErrorCode.ERROR_CODE_SUCCESS) {
sendResponse(response, errorCode, null, base64Response);
return true;