From edf54f4a2c59990c91544614d6014a900a8e3af3 Mon Sep 17 00:00:00 2001 From: drebs Date: Wed, 19 Aug 2015 12:36:59 -0300 Subject: [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 --- common/src/leap/soledad/common/tests/test_encdecpool.py | 1 - 1 file changed, 1 deletion(-) (limited to 'common') 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 -- cgit v1.2.3