summaryrefslogtreecommitdiff
path: root/common/src/leap/soledad
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2015-08-19 12:36:59 -0300
committerdrebs <drebs@leap.se>2015-08-19 15:41:30 -0300
commitedf54f4a2c59990c91544614d6014a900a8e3af3 (patch)
treed2fe983af9ac2ef3214dce72a8adb9f198d999ce /common/src/leap/soledad
parent469136cb6018b7408e06f11131d5108c7892020d (diff)
[bug] wait for db init on sync decrypter pool
Previous to this modification, the initialization of the sync decrypter pool could happen concurrently with other database operations. That could cause the pool to hang because it could be waiting for something that was mistakenly deleted because of the wrong order of database operations. This commit implements a standard which we already use in leap.keymanager and leap.mail which makes some methods wait for the initialization operation before they are actually called. Closes: #7386
Diffstat (limited to 'common/src/leap/soledad')
-rw-r--r--common/src/leap/soledad/common/tests/test_encdecpool.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/common/src/leap/soledad/common/tests/test_encdecpool.py b/common/src/leap/soledad/common/tests/test_encdecpool.py
index 26eb5175..793bfa1a 100644
--- a/common/src/leap/soledad/common/tests/test_encdecpool.py
+++ b/common/src/leap/soledad/common/tests/test_encdecpool.py
@@ -20,7 +20,6 @@ Tests for encryption and decryption pool.
import json
from twisted.internet.defer import inlineCallbacks
-from twisted.trial.unittest import TestCase
from leap.soledad.client.encdecpool import SyncEncrypterPool
from leap.soledad.client.encdecpool import SyncDecrypterPool