whitespaces aren't added to the SM queue

This commit is contained in:
Jefry Lagrange 2011-06-13 22:37:29 -04:00
parent 985746d65a
commit b8aa518592
1 changed files with 2 additions and 1 deletions

View File

@ -536,7 +536,8 @@ class XMPPDispatcher(PlugIn):
if self._owner._registered_name and not stanza.getAttr('from'): if self._owner._registered_name and not stanza.getAttr('from'):
stanza.setAttr('from', self._owner._registered_name) 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.uqueue.append(stanza)
self.sm.out_h = self.sm.out_h + 1 self.sm.out_h = self.sm.out_h + 1
if len(self.sm.uqueue) > self.sm.max_queue: if len(self.sm.uqueue) > self.sm.max_queue: