diff options
author | Tomás Touceda <chiiph@leap.se> | 2013-07-25 13:19:24 -0300 |
---|---|---|
committer | Tomás Touceda <chiiph@leap.se> | 2013-07-25 13:19:24 -0300 |
commit | 53aea7c4e796ebd0772cbf27c6fe8a3878c5e083 (patch) | |
tree | f88f96806306760966f4b73c98697a8dd8e4b239 /src/leap/gui/mainwindow.py | |
parent | ceb912a38ba80fd6986e9e678077a86664fea920 (diff) | |
parent | b9c3fcd9ea6469185f7e7f483eeffb7b346e9dad (diff) |
Merge remote-tracking branch 'kali/bug/fix_rate_displays' into develop
Diffstat (limited to 'src/leap/gui/mainwindow.py')
-rw-r--r-- | src/leap/gui/mainwindow.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/leap/gui/mainwindow.py b/src/leap/gui/mainwindow.py index 3bd7c516..baa5f385 100644 --- a/src/leap/gui/mainwindow.py +++ b/src/leap/gui/mainwindow.py @@ -1348,6 +1348,11 @@ class MainWindow(QtGui.QMainWindow): """ logger.debug('About to quit, doing cleanup...') + if self._srp_auth is not None: + if self._srp_auth.get_session_id() is not None or \ + self._srp_auth.get_token() is not None: + self._srp_auth.logout() + logger.debug('Cleaning pidfiles') self._cleanup_pidfiles() |