From a37a697f629dd33da8ae70514a5743d6425bf44a Mon Sep 17 00:00:00 2001 From: Darren Date: Tue, 23 Sep 2014 20:16:56 +0100 Subject: [PATCH] Stop client reconnecting twice over + too fast --- client/assets/libs/engine.io.tools.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); } -- 2.25.1