diff options
author | Marko Pušnik <marko.pusnik@guru.si> | 2015-10-12 18:41:38 +0200 |
---|---|---|
committer | Marko Pušnik <marko.pusnik@guru.si> | 2015-10-12 18:41:38 +0200 |
commit | 7461c4d6cd1c469bb757167cffb26bc7f99b66cf (patch) | |
tree | 9df9088f371d1960308633bebcbd3874edccf90c /js | |
parent | f862dbbb936c003e0f6ce28ae0062428db30b8e5 (diff) |
logout bugfix
Diffstat (limited to 'js')
-rw-r--r-- | js/codeq/comms.js | 4 |
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) { |