summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2014-09-09 10:18:09 -0500
committerKali Kaneko <kali@leap.se>2014-09-09 10:48:56 -0500
commit85e5bb0279b47982b535a2711c156d61a9ee235e (patch)
tree415fdbdf4299e30172d3f898e9936e72c0ae6d67 /mail
parent23c99b0cc9163f4972c6650c285a0e61f7d91f25 (diff)
return the deferred from sendMessage
in this way we allow to add more callbacks to the chain.
Diffstat (limited to 'mail')
-rw-r--r--mail/src/leap/mail/smtp/gateway.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/mail/src/leap/mail/smtp/gateway.py b/mail/src/leap/mail/smtp/gateway.py
index ef398d1f..13d3bbf9 100644
--- a/mail/src/leap/mail/smtp/gateway.py
+++ b/mail/src/leap/mail/smtp/gateway.py
@@ -463,13 +463,13 @@ class EncryptedMessage(object):
"""
Sends the message.
- :return: A deferred with callbacks for error and success of this
- #message send.
+ :return: A deferred with callback and errback for
+ this #message send.
:rtype: twisted.internet.defer.Deferred
"""
d = deferToThread(self._route_msg)
d.addCallbacks(self.sendQueued, self.sendError)
- return
+ return d
def _route_msg(self):
"""