summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/services/abstractbootstrapper.py
diff options
context:
space:
mode:
authorTomás Touceda <chiiph@leap.se>2014-04-16 11:52:35 -0300
committerTomás Touceda <chiiph@leap.se>2014-04-16 11:52:35 -0300
commit72aca6c71b08b27382d63297559f0fce7b9dfc1b (patch)
treeb509b968dcddc8ebab27c472060f0208146f3aa3 /src/leap/bitmask/services/abstractbootstrapper.py
parent53fdcda3f487a371cc196451f85c74870fb3bf4b (diff)
parent074acd22df82b732c099444cdb59df203ef996a5 (diff)
Merge remote-tracking branch 'refs/remotes/ivan/feature/refactor-logic-to-backend' into develop
Diffstat (limited to 'src/leap/bitmask/services/abstractbootstrapper.py')
-rw-r--r--src/leap/bitmask/services/abstractbootstrapper.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/leap/bitmask/services/abstractbootstrapper.py b/src/leap/bitmask/services/abstractbootstrapper.py
index fc6bd3e9..77929b75 100644
--- a/src/leap/bitmask/services/abstractbootstrapper.py
+++ b/src/leap/bitmask/services/abstractbootstrapper.py
@@ -78,6 +78,7 @@ class AbstractBootstrapper(QtCore.QObject):
self._signal_to_emit = None
self._err_msg = None
self._signaler = signaler
+ self._cancel_signal = None
def _gui_errback(self, failure):
"""
@@ -95,7 +96,8 @@ class AbstractBootstrapper(QtCore.QObject):
if failure.check(CancelledError):
logger.debug("Defer cancelled.")
failure.trap(Exception)
- self._signaler.signal(self._signaler.PROV_CANCELLED_SETUP)
+ if self._signaler is not None and self._cancel_signal is not None:
+ self._signaler.signal(self._cancel_signal)
return
if self._signal_to_emit: