really fix dispatcher to support several waiting stanza at the same time. Fix #4299

This commit is contained in:
Yann Leboulanger 2009-02-15 14:13:21 +00:00
parent f443673bfd
commit a2b534c040
1 changed files with 3 additions and 2 deletions

View File

@ -469,9 +469,10 @@ class XMPPDispatcher(PlugIn):
# would have placed the reply stanza in there
continue
if _id in self.on_responses:
self._owner.onreceive(None)
if len(self._expected) == 1:
self._owner.onreceive(None)
resp, args = self.on_responses[_id]
del(self.on_responses[_id])
del self.on_responses[_id]
if args is None:
resp(_iq)
else: