Commit 34dccd23 authored by Thilo Molitor's avatar Thilo Molitor

Fix: request smacks ack AFTER sending out a stanza

parent 5876bdf3
......@@ -573,10 +573,12 @@ class XMPPDispatcher(PlugIn):
if self.sm and self.sm.enabled and ID:
self.sm.uqueue.append(stanza)
self.sm.out_h += 1
if len(self.sm.uqueue) > self.sm.max_queue:
self.sm.request_ack()
self._owner.Connection.send(stanza, now)
if self.sm and self.sm.enabled and ID and len(self.sm.uqueue) > self.sm.max_queue:
self.sm.request_ack()
return ID
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment