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

Fix BOSH disconnect

parent f60eb4d2
......@@ -623,7 +623,10 @@ class XMPPDispatcher(PlugIn):
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
resp, args = self.on_responses[_id]
del self.on_responses[_id]
if args is None:
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