diff options
author | drebs <drebs@leap.se> | 2014-12-17 14:51:55 -0200 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2015-02-11 14:03:18 -0400 |
commit | 0b88ef70ec12d3666a9bfc32481d672cb01cf056 (patch) | |
tree | d5d929c2984b14d618d4b3f25011e482cb32e28c /client/src/leap | |
parent | d0a0e92550bcc148fa236add5360ed581109ae6b (diff) |
Do not try to close db syncer if db is not syncable.
Diffstat (limited to 'client/src/leap')
-rw-r--r-- | client/src/leap/soledad/client/api.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/client/src/leap/soledad/client/api.py b/client/src/leap/soledad/client/api.py index 998e9148..81bf1fd9 100644 --- a/client/src/leap/soledad/client/api.py +++ b/client/src/leap/soledad/client/api.py @@ -285,7 +285,8 @@ class Soledad(object): """ logger.debug("Closing soledad") self._dbpool.close() - self._dbsyncer.close() + if getattr(self, '_dbsyncer', None): + self._dbsyncer.close() # # ILocalStorage |