From bb8646d9769cb3c1d2b84b43047e6feaf8e40966 Mon Sep 17 00:00:00 2001 From: Ivan Alejandro Date: Fri, 2 Oct 2015 11:52:24 -0300 Subject: [bug] signal soledad bootstrap fail on init - Resolves: #7503 Signed-off-by: Ivan Alejandro --- changes/bug-7503_handle-soledad-init-fail | 1 + src/leap/bitmask/services/soledad/soledadbootstrapper.py | 2 ++ 2 files changed, 3 insertions(+) create mode 100644 changes/bug-7503_handle-soledad-init-fail 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")) -- cgit v1.2.3