summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/crypto/srpauth.py
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2013-08-22 14:32:24 +0200
committerKali Kaneko <kali@leap.se>2013-08-22 14:32:24 +0200
commitf0521208ee8141706143c7719e03547a5672fee2 (patch)
tree1972071a62b708820676809acd907f640f49a7fa /src/leap/bitmask/crypto/srpauth.py
parent83481cf896befd981482def1b84c701bd62ee023 (diff)
parentbdf3ee2957a3f2177911f2652626c52856ef9869 (diff)
Merge remote-tracking branch 'chiiph/bug/properly_logout' into develop
Diffstat (limited to 'src/leap/bitmask/crypto/srpauth.py')
-rw-r--r--src/leap/bitmask/crypto/srpauth.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/leap/bitmask/crypto/srpauth.py b/src/leap/bitmask/crypto/srpauth.py
index b3a305f1..55fff82b 100644
--- a/src/leap/bitmask/crypto/srpauth.py
+++ b/src/leap/bitmask/crypto/srpauth.py
@@ -495,12 +495,12 @@ class SRPAuth(QtCore.QObject):
except Exception as e:
logger.warning("Something went wrong with the logout: %r" %
(e,))
-
- self.set_session_id(None)
- self.set_uid(None)
- # Also reset the session
- self._session = self._fetcher.session()
- logger.debug("Successfully logged out.")
+ else:
+ self.set_session_id(None)
+ self.set_uid(None)
+ # Also reset the session
+ self._session = self._fetcher.session()
+ logger.debug("Successfully logged out.")
def set_session_id(self, session_id):
QtCore.QMutexLocker(self._session_id_lock)