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

Otherwise re-login hangs after authfail.
This commit is contained in:
JC Brand 2017-02-18 09:46:33 +00:00
parent 33cc2c3cf5
commit 61bee4c263

View File

@ -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');