Skip to content
Snippets Groups Projects
Commit b8aa5185 authored by zimio's avatar zimio
Browse files

whitespaces aren't added to the SM queue

parent 985746d6
No related branches found
No related tags found
No related merge requests found
......@@ -536,7 +536,8 @@ class XMPPDispatcher(PlugIn):
if self._owner._registered_name and not stanza.getAttr('from'):
stanza.setAttr('from', self._owner._registered_name)
if self.sm and self.sm.enabled:
# If no ID then it is a whitespace
if self.sm and self.sm.enabled and ID:
self.sm.uqueue.append(stanza)
self.sm.out_h = self.sm.out_h + 1
if len(self.sm.uqueue) > self.sm.max_queue:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment