Commit 59ad2858 authored by JC Brand's avatar JC Brand

converse-core: cause can sometimes be DISCONNECTING

parent 376c50fb
...@@ -413,7 +413,8 @@ ...@@ -413,7 +413,8 @@
if (converse.disconnection_cause === Strophe.Status.CONNFAIL) { if (converse.disconnection_cause === Strophe.Status.CONNFAIL) {
converse.reconnect(condition); converse.reconnect(condition);
converse.log('RECONNECTING'); converse.log('RECONNECTING');
} else if (converse.disconnection_cause === Strophe.Status.DISCONNECTED) { } else if (converse.disconnection_cause === Strophe.Status.DISCONNECTING ||
converse.disconnection_cause === Strophe.Status.DISCONNECTED) {
window.setTimeout(_.partial(converse.reconnect, condition), 3000); window.setTimeout(_.partial(converse.reconnect, condition), 3000);
converse.log('RECONNECTING IN 3 SECONDS'); converse.log('RECONNECTING IN 3 SECONDS');
} }
......
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