From 2d4b5b535c2a3df875a0a3c97cdd25ed67275b29 Mon Sep 17 00:00:00 2001 From: Robert Zorko Date: Mon, 14 Dec 2015 15:55:39 +0100 Subject: fixed the bug with the overlay not beeing hidden after server times out --- js/codeq/core.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'js/codeq/core.js') diff --git a/js/codeq/core.js b/js/codeq/core.js index cb6f54c..22f6a50 100644 --- a/js/codeq/core.js +++ b/js/codeq/core.js @@ -610,9 +610,13 @@ along with this program. If not, see . */ codeq.log.info('App reset: ' + (reason || 'no reason given')); codeq.globalStateMachine.transition('login'); codeq.wait( - codeq.comms.logout() - .finally(codeq.comms.disconnect) - .fail(function () {}) // ignore errors + codeq.comms.getSid() == null ? Q() : codeq.comms.logout() + .finally( + codeq.comms.disconnect + ) + .fail(function (e) { + codeq.log.debug(e) + }) // ignore errors ) .then(function () { if (reason) { -- cgit v1.2.1