Explorar o código

Don't debounce `reconnect` on leading edge

Otherwise we can get into a situation where Converse stops trying to
reconnect.
JC Brand %!s(int64=6) %!d(string=hai) anos
pai
achega
886ff1bd19
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/headless/converse-core.js

+ 1 - 1
src/headless/converse-core.js

@@ -748,7 +748,7 @@ _converse.initialize = async function (settings, callback) {
         _converse.connection.reconnecting = true;
         _converse.tearDown();
         _converse.logIn(null, true);
-    }, 2000, {'leading': true});
+    }, 2000);
 
 
     /**