Mercurial > libervia-backend
comparison 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 |
comparison
equal
deleted
inserted
replaced
2649:b06af19c851f | 2650:3a8e7ec4648a |
---|---|
649 # XXX: This is the last trigger before u"send" (last but one globally) | 649 # XXX: This is the last trigger before u"send" (last but one globally) |
650 # for sending message. | 650 # for sending message. |
651 # This is intented for e2e encryption which doesn't do full stanza | 651 # This is intented for e2e encryption which doesn't do full stanza |
652 # encryption (e.g. OTR) | 652 # encryption (e.g. OTR) |
653 # This trigger point can't cancel the method | 653 # This trigger point can't cancel the method |
654 yield self.host_app.trigger.asyncPoint("sendMessageData", self, mess_data) | 654 yield self.host_app.trigger.asyncPoint("sendMessageData", self, mess_data, |
655 triggers_no_cancel=True) | |
655 self.send(mess_data[u"xml"]) | 656 self.send(mess_data[u"xml"]) |
656 defer.returnValue(mess_data) | 657 defer.returnValue(mess_data) |
657 | 658 |
658 def feedback(self, to_jid, message): | 659 def feedback(self, to_jid, message): |
659 """Send message to frontends | 660 """Send message to frontends |