diff options
-rw-r--r-- | changes/bug-7503_handle-soledad-init-fail | 1 | ||||
-rw-r--r-- | src/leap/bitmask/services/soledad/soledadbootstrapper.py | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/changes/bug-7503_handle-soledad-init-fail b/changes/bug-7503_handle-soledad-init-fail new file mode 100644 index 00000000..2edc751e --- /dev/null +++ b/changes/bug-7503_handle-soledad-init-fail @@ -0,0 +1 @@ +- Handle soledad init fail after several retries. Closes bug #7503. diff --git a/src/leap/bitmask/services/soledad/soledadbootstrapper.py b/src/leap/bitmask/services/soledad/soledadbootstrapper.py index 57ae3849..ec758833 100644 --- a/src/leap/bitmask/services/soledad/soledadbootstrapper.py +++ b/src/leap/bitmask/services/soledad/soledadbootstrapper.py @@ -253,6 +253,7 @@ class SoledadBootstrapper(AbstractBootstrapper): logger.warning(msg) continue + self._signaler.signal(self._signaler.soledad_bootstrap_failed) logger.exception(exc) raise SoledadInitError() @@ -668,5 +669,6 @@ class Syncer(object): self._try_sync() else: logger.error("Sync failed {0} times".format(self._tries)) + self._signaler.signal(self._signaler.soledad_bootstrap_failed) self._callback_deferred.errback( SoledadSyncError("Too many retries")) |