summaryrefslogtreecommitdiff
path: root/service/pixelated
diff options
context:
space:
mode:
Diffstat (limited to 'service/pixelated')
-rw-r--r--service/pixelated/bitmask_libraries/session.py5
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)