From 6d4953457726ec7830e48fb899e2e8c17b1ec995 Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Mon, 25 May 2015 20:16:30 -0300 Subject: [bug] dictionary cant be modified during iteration I tested that code and this cant happen. We need to iterate keys and then ask 'del'. The previous method raised: RuntimeError: dictionary changed size during iteration --- client/src/leap/soledad/client/sqlcipher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/leap/soledad/client/sqlcipher.py b/client/src/leap/soledad/client/sqlcipher.py index 8e7d39c2..b2025130 100644 --- a/client/src/leap/soledad/client/sqlcipher.py +++ b/client/src/leap/soledad/client/sqlcipher.py @@ -676,7 +676,7 @@ class SQLCipherU1DBSync(SQLCipherDatabase): Close the syncer and syncdb orderly """ # close all open syncers - for url in self._syncers: + for url in self._syncers.keys(): del self._syncers[url] # stop the encryption pool -- cgit v1.2.3