Commit 61bee4c2 authored by JC Brand's avatar JC Brand

The Strophe.Connection obj needs to be reset before reuse.

Otherwise re-login hangs after authfail.
parent 33cc2c3c
......@@ -418,6 +418,7 @@
this.disconnect = function () {
_converse.log('DISCONNECTED');
delete _converse.connection.reconnecting;
_converse.connection.reset();
_converse._tearDown();
_converse.chatboxviews.closeAllChatBoxes();
_converse.emit('disconnected');
......
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