diff options
Diffstat (limited to 'client/src/leap/soledad')
-rw-r--r-- | client/src/leap/soledad/client/encdecpool.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/client/src/leap/soledad/client/encdecpool.py b/client/src/leap/soledad/client/encdecpool.py index 8713497e..4cdb3cd4 100644 --- a/client/src/leap/soledad/client/encdecpool.py +++ b/client/src/leap/soledad/client/encdecpool.py @@ -191,10 +191,11 @@ class SyncEncrypterPool(SyncEncryptDecryptPool): Stop the encrypter pool. """ # close the sync queue - self._encr_queue.close() - q = self._encr_queue - del q - self._encr_queue = None + if self._encr_queue: + self._encr_queue.close() + q = self._encr_queue + del q + self._encr_queue = None SyncEncryptDecryptPool.stop(self) |