diff options
-rw-r--r-- | changes/bug_correctly-return-async-bouncer-deferred | 1 | ||||
-rw-r--r-- | src/leap/mx/mail_receiver.py | 6 |
2 files changed, 6 insertions, 1 deletions
diff --git a/changes/bug_correctly-return-async-bouncer-deferred b/changes/bug_correctly-return-async-bouncer-deferred new file mode 100644 index 0000000..15d3691 --- /dev/null +++ b/changes/bug_correctly-return-async-bouncer-deferred @@ -0,0 +1 @@ + o Correctly return async bouncer deferred. diff --git a/src/leap/mx/mail_receiver.py b/src/leap/mx/mail_receiver.py index 630c982..7856594 100644 --- a/src/leap/mx/mail_receiver.py +++ b/src/leap/mx/mail_receiver.py @@ -96,6 +96,10 @@ class BouncerSubprocessProtocol(protocol.ProcessProtocol): self._errBuffer = "" self._d = None + @property + def deferred(self): + return self._d + def connectionMade(self): self._d = defer.Deferred() @@ -130,7 +134,7 @@ def async_check_output(args, msg): """ pprotocol = BouncerSubprocessProtocol(msg) reactor.spawnProcess(pprotocol, args[0], args) - return pprotocol.d + return pprotocol.deferred class MailReceiver(Service): |