summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2015-03-24 15:07:51 -0300
committerdrebs <drebs@leap.se>2015-03-25 17:03:05 -0300
commit938cada00298243f0cf51c9bfd460ecb16938b57 (patch)
treec881b5e166c42f7970ea09611382861d0b7718ef /src
parentb5ed3e4db16c8e3856b5c45409807d8f58cd957a (diff)
[bug] correctly return async bouncer deferred
Diffstat (limited to 'src')
-rw-r--r--src/leap/mx/mail_receiver.py6
1 files changed, 5 insertions, 1 deletions
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):