Skip to content
Snippets Groups Projects
Commit 2b0ef67c authored by tomk's avatar tomk
Browse files

fixes #4657 - traceback on terminating stanza after BOSH init request

parent 92a911da
No related branches found
No related tags found
No related merge requests found
......@@ -306,10 +306,18 @@ class NonBlockingClient:
if data:
self.Dispatcher.ProcessNonBlocking(data)
if not hasattr(self, 'Dispatcher') or \
self.Dispatcher.Stream._document_attrs is None:
self.Dispatcher.Stream._document_attrs is None:
self._xmpp_connect_machine(
mode='FAILURE',
data='Error on stream open')
return
# if terminating stanza was received after init request then client gets
# disconnected from bosh transport plugin and we have to end the stream
# negotiating process straight away.
# fixes #4657
if not self.connected: return
if self.incoming_stream_version() == '1.0':
if not self.got_features:
on_next_receive('RECEIVE_STREAM_FEATURES')
......
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