diff options
author | Folker Bernitt <fbernitt@thoughtworks.com> | 2016-02-09 14:55:37 +0100 |
---|---|---|
committer | Folker Bernitt <fbernitt@thoughtworks.com> | 2016-02-09 14:55:37 +0100 |
commit | ecffe8699768b867765d382c41bc96e1067f3013 (patch) | |
tree | 2bc347e06dbc1ae8be756c747cb142b894a77428 /service/pixelated | |
parent | 34885b35a6ba28af0ac031355ee60801f8646b7e (diff) |
Close account on session close
- Issue #586
Diffstat (limited to 'service/pixelated')
-rw-r--r-- | service/pixelated/bitmask_libraries/session.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/service/pixelated/bitmask_libraries/session.py b/service/pixelated/bitmask_libraries/session.py index 57929c65..e217c286 100644 --- a/service/pixelated/bitmask_libraries/session.py +++ b/service/pixelated/bitmask_libraries/session.py @@ -89,6 +89,11 @@ class LeapSession(object): unregister(events.KEYMANAGER_FINISHED_KEY_GENERATION, uid=self.account_email()) self.soledad.close() self.remove_from_cache() + self._close_account() + + def _close_account(self): + if self.account: + self.account.end_session() def remove_from_cache(self): key = SessionCache.session_key(self.provider, self.user_auth.username) |