diff options
author | Victor Shyba <victor.shyba@gmail.com> | 2015-05-25 20:16:30 -0300 |
---|---|---|
committer | Victor Shyba <victor.shyba@gmail.com> | 2015-05-26 15:28:23 -0300 |
commit | 6d4953457726ec7830e48fb899e2e8c17b1ec995 (patch) | |
tree | 4086ac728309d853021e989058968635ee1f7c84 /client/src/leap/soledad | |
parent | 5feb66707d84d6644158b5c9b848628a4814610f (diff) |
[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
Diffstat (limited to 'client/src/leap/soledad')
-rw-r--r-- | client/src/leap/soledad/client/sqlcipher.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |