Commit 886ff1bd authored by JC Brand's avatar JC Brand

Don't debounce `reconnect` on leading edge

Otherwise we can get into a situation where Converse stops trying to
reconnect.
parent a95bb5b2
...@@ -748,7 +748,7 @@ _converse.initialize = async function (settings, callback) { ...@@ -748,7 +748,7 @@ _converse.initialize = async function (settings, callback) {
_converse.connection.reconnecting = true; _converse.connection.reconnecting = true;
_converse.tearDown(); _converse.tearDown();
_converse.logIn(null, true); _converse.logIn(null, true);
}, 2000, {'leading': true}); }, 2000);
/** /**
......
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