解决session在重启后,内存中不存在的问题

This commit is contained in:
heavyrain.lee
2019-05-24 16:33:35 +08:00
parent 3ef973ffc5
commit 675025c0ec
5 changed files with 19 additions and 5 deletions
@@ -79,7 +79,7 @@ public class RouteAction extends Action {
MemorySessionStore.Session session = sessionsStore.sessionForClientAndUser(uid, cid);
if (session == null) {
ErrorCode errorCode = sessionsStore.createNewSession(uid, cid, true);
ErrorCode errorCode = sessionsStore.createNewSession(uid, cid, true, true);
if (errorCode != ErrorCode.ERROR_CODE_SUCCESS) {
sendResponse(response, errorCode, null, base64Response);
return true;