summaryrefslogtreecommitdiff
path: root/src/leap/mail/smtp/gateway.py
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
commit1f7b0f2b0e2ba0ef8e09be678ab452951532bd37 (patch)
tree005689d18b25d7fb46085843e0cbf6ddfc14f978 /src/leap/mail/smtp/gateway.py
parent7e84a21a837b8d3f1ce72bc349ab966ef80ed1a2 (diff)
return the deferred from sendMessage
in this way we allow to add more callbacks to the chain.
Diffstat (limited to 'src/leap/mail/smtp/gateway.py')
-rw-r--r--src/leap/mail/smtp/gateway.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/leap/mail/smtp/gateway.py b/src/leap/mail/smtp/gateway.py
index ef398d1..13d3bbf 100644
--- a/src/leap/mail/smtp/gateway.py
+++ b/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):
"""