Commit 396c27a9 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

Fix BOSH disconnect

parent f60eb4d2
......@@ -623,6 +623,9 @@ class XMPPDispatcher(PlugIn):
continue
if _id in self.on_responses:
if len(self._expected) == 1:
if hasattr(self._owner, 'onreceive'):
# With BOSH we get a terminating body with multiple stanzas
# in it, we unplug BOSH before we parse the stanzas
self._owner.onreceive(None)
resp, args = self.on_responses[_id]
del self.on_responses[_id]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment