diff options
author | Kali Kaneko <kali@leap.se> | 2015-08-05 18:59:52 -0700 |
---|---|---|
committer | Ivan Alejandro <ivanalejandro0@gmail.com> | 2015-08-07 19:02:24 -0300 |
commit | 109af6218886ac4cdaf0d915675b1e912c68341e (patch) | |
tree | d0986b8d2be773d91ddc8d5caaa63c3590796363 /src/leap | |
parent | f5e150a4fe87b60316d278de6b4ead08357f2dba (diff) |
[bug] schedule signal emitting in reactor thread
Diffstat (limited to 'src/leap')
-rw-r--r-- | src/leap/bitmask/services/abstractbootstrapper.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/leap/bitmask/services/abstractbootstrapper.py b/src/leap/bitmask/services/abstractbootstrapper.py index 6a08f475..191309ba 100644 --- a/src/leap/bitmask/services/abstractbootstrapper.py +++ b/src/leap/bitmask/services/abstractbootstrapper.py @@ -25,7 +25,7 @@ from functools import partial from PySide import QtCore from twisted.python import log -from twisted.internet import threads +from twisted.internet import threads, reactor from twisted.internet.defer import CancelledError from leap.bitmask.logs.utils import get_logger @@ -155,7 +155,8 @@ class AbstractBootstrapper(QtCore.QObject): data = {self.PASSED_KEY: True, self.ERROR_KEY: ""} if isinstance(signal, basestring): if self._signaler is not None: - self._signaler.signal(signal, data) + reactor.callFromThread( + self._signaler.signal, signal, data) else: logger.warning("Tried to notify but no signaler found") else: |