From 84c20f919b6c3422474468a1d47600b7f8e2bf63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Wed, 27 May 2020 13:07:51 -0400 Subject: [PATCH] fix: don't explode if server sends `checkSession` --- public/src/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/src/app.js b/public/src/app.js index e06a5a5c85..12c7033a52 100644 --- a/public/src/app.js +++ b/public/src/app.js @@ -155,6 +155,7 @@ app.cacheBuster = null; message = message.message || message; if (message === '[[error:invalid-session]]') { + app.logout(false); return app.handleInvalidSession(); } @@ -168,7 +169,6 @@ app.cacheBuster = null; app.handleInvalidSession = function () { socket.disconnect(); - app.logout(false); bootbox.alert({ title: '[[error:invalid-session]]', message: '[[error:invalid-session-text]]',