Skip to content
Snippets Groups Projects
Commit a2b534c0 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

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

parent f443673b
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
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