Commit e461b22f authored by JC Brand's avatar JC Brand

disconnect and reset before attempting to reconnect.

parent 5bb76b10
...@@ -428,6 +428,8 @@ ...@@ -428,6 +428,8 @@
this.reconnect = function (condition) { this.reconnect = function (condition) {
this.connection.disconnect('re-connecting');
this.connection.reset();
converse.log('Attempting to reconnect in 5 seconds'); converse.log('Attempting to reconnect in 5 seconds');
converse.giveFeedback(__('Attempting to reconnect in 5 seconds'), 'error'); converse.giveFeedback(__('Attempting to reconnect in 5 seconds'), 'error');
window.clearTimeout(converse.reconnectTimeout); window.clearTimeout(converse.reconnectTimeout);
......
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