diff options
author | drebs <drebs@leap.se> | 2015-08-18 12:03:16 -0300 |
---|---|---|
committer | drebs <drebs@leap.se> | 2015-08-18 12:03:16 -0300 |
commit | fd4412806c8afefc101cc8300d777c8f7e4b2858 (patch) | |
tree | 4388f49d023e6ed57bb0838df00f01625afe153d /client/src | |
parent | b7ec1936ec9e8bd2123b489ab25c547e43cd515f (diff) |
[refactor] clarify sync target closing
Diffstat (limited to 'client/src')
-rw-r--r-- | client/src/leap/soledad/client/sqlcipher.py | 3 | ||||
-rw-r--r-- | client/src/leap/soledad/client/sync.py | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/client/src/leap/soledad/client/sqlcipher.py b/client/src/leap/soledad/client/sqlcipher.py index 6a4fa01a..18a9c5de 100644 --- a/client/src/leap/soledad/client/sqlcipher.py +++ b/client/src/leap/soledad/client/sqlcipher.py @@ -598,7 +598,8 @@ class SQLCipherU1DBSync(SQLCipherDatabase): """ # close all open syncers for url in self._syncers.keys(): - self._syncers[url][1].close() + _, syncer = self._syncers[url] + syncer.close() del self._syncers[url] diff --git a/client/src/leap/soledad/client/sync.py b/client/src/leap/soledad/client/sync.py index 1a881555..deb183ca 100644 --- a/client/src/leap/soledad/client/sync.py +++ b/client/src/leap/soledad/client/sync.py @@ -185,6 +185,9 @@ class SoledadSynchronizer(Synchronizer): return self._record_sync_info_with_the_target(info["my_gen"]) def close(self): + """ + Close the synchronizer. + """ self.sync_target.close() def _record_sync_info_with_the_target(self, start_generation): |