summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--js/codeq/comms.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/js/codeq/comms.js b/js/codeq/comms.js
index 89813ee..1022f73 100644
--- a/js/codeq/comms.js
+++ b/js/codeq/comms.js
@@ -364,7 +364,9 @@
},
'logout': function () {
- return this.send({'action': 'logout'});
+ var promise = this.send({'action': 'logout'});
+ sid = null;
+ return promise;
},
'signup': function (username, name, email, password) {