diff sat/core/xmpp.py @ 2650:3a8e7ec4648a

tools (trigger, async_trigger): added no_cancel argument to point and asyncPoint when a trigger must not be cancellable
author Goffi <goffi@goffi.org>
date Sat, 11 Aug 2018 18:24:52 +0200
parents 712cb4ff3e13
children 4e130cc9bfc0
line wrap: on
line diff
--- a/sat/core/xmpp.py	Sat Aug 04 13:03:44 2018 +0200
+++ b/sat/core/xmpp.py	Sat Aug 11 18:24:52 2018 +0200
@@ -651,7 +651,8 @@
         #      This is intented for e2e encryption which doesn't do full stanza
         #      encryption (e.g. OTR)
         #      This trigger point can't cancel the method
-        yield self.host_app.trigger.asyncPoint("sendMessageData", self, mess_data)
+        yield self.host_app.trigger.asyncPoint("sendMessageData", self, mess_data,
+            triggers_no_cancel=True)
         self.send(mess_data[u"xml"])
         defer.returnValue(mess_data)