From 28f64b866d1f3c51fe1208d37450f2153ba1575f Mon Sep 17 00:00:00 2001 From: NavaL Date: Mon, 10 Oct 2016 10:51:17 +0200 Subject: setting Leapsssion.is_closed only when all services/dependencies are closed --- service/pixelated/config/sessions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/pixelated/config/sessions.py b/service/pixelated/config/sessions.py index 3a8ffc56..d38e7b4f 100644 --- a/service/pixelated/config/sessions.py +++ b/service/pixelated/config/sessions.py @@ -179,12 +179,12 @@ class LeapSession(object): return self.provider.address_for(name) def close(self): - self._is_closed = True self.stop_background_jobs() unregister(events.KEYMANAGER_FINISHED_KEY_GENERATION, uid=self.account_email()) self.soledad.close() self._close_account() self.remove_from_cache() + self._is_closed = True @property def is_closed(self): -- cgit v1.2.3