From: Darren Date: Tue, 23 Sep 2014 19:16:56 +0000 (+0100) Subject: Stop client reconnecting twice over + too fast X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=a37a697f629dd33da8ae70514a5743d6425bf44a;p=KiwiIRC.git Stop client reconnecting twice over + too fast --- diff --git a/client/assets/libs/engine.io.tools.js b/client/assets/libs/engine.io.tools.js index 4846df0..73fae02 100644 --- a/client/assets/libs/engine.io.tools.js +++ b/client/assets/libs/engine.io.tools.js @@ -3,7 +3,7 @@ var EngineioTools = { var connected = false; var is_reconnecting = false; - var reconnect_delay = 2000; + var reconnect_delay = 4000; var reconnect_last_delay = 0; var reconnect_delay_exponential = true; var reconnect_max_attempts = 5; @@ -49,7 +49,7 @@ var EngineioTools = { function onClose() { connected = false; - if (!planned_disconnect) + if (!planned_disconnect && !is_reconnecting) reconnect(); }