From 2090b9b900a2e7d1d0a7f39bd884d1e1ec85930c Mon Sep 17 00:00:00 2001 From: Jefry Lagrange Date: Mon, 6 Jun 2011 23:43:13 -0400 Subject: [PATCH] fixed small bug in dispatcher --- src/common/xmpp/dispatcher_nb.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/xmpp/dispatcher_nb.py b/src/common/xmpp/dispatcher_nb.py index e0b5d1538..d3f5b7cb3 100644 --- a/src/common/xmpp/dispatcher_nb.py +++ b/src/common/xmpp/dispatcher_nb.py @@ -91,7 +91,7 @@ class XMPPDispatcher(PlugIn): self.getAnID, self.Event, self.send] # Let the dispatcher know if there is support for stream management - self.supports_sm = False + self.sm = None def getAnID(self): global outgoingID @@ -535,7 +535,7 @@ class XMPPDispatcher(PlugIn): if self._owner._registered_name and not stanza.getAttr('from'): stanza.setAttr('from', self._owner._registered_name) - if self.supports_sm: + if self.sm: self.sm.uqueue.append(stanza) self.sm.out_h = self.sm.out_h + 1 if len(self.sm.uqueue) > self.sm.max_queue: