really fix dispatcher to support several waiting stanza at the same time. Fix #4299
This commit is contained in:
parent
f443673bfd
commit
a2b534c040
|
@ -469,9 +469,10 @@ class XMPPDispatcher(PlugIn):
|
||||||
# would have placed the reply stanza in there
|
# would have placed the reply stanza in there
|
||||||
continue
|
continue
|
||||||
if _id in self.on_responses:
|
if _id in self.on_responses:
|
||||||
|
if len(self._expected) == 1:
|
||||||
self._owner.onreceive(None)
|
self._owner.onreceive(None)
|
||||||
resp, args = self.on_responses[_id]
|
resp, args = self.on_responses[_id]
|
||||||
del(self.on_responses[_id])
|
del self.on_responses[_id]
|
||||||
if args is None:
|
if args is None:
|
||||||
resp(_iq)
|
resp(_iq)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue