projects
/
KiwiIRC.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c4e5ddc
)
Stop client reconnecting twice over + too fast
author
Darren
<darren@darrenwhitlen.com>
Tue, 23 Sep 2014 19:16:56 +0000
(20:16 +0100)
committer
Darren
<darren@darrenwhitlen.com>
Tue, 23 Sep 2014 19:16:56 +0000
(20:16 +0100)
client/assets/libs/engine.io.tools.js
patch
|
blob
|
blame
|
history
diff --git
a/client/assets/libs/engine.io.tools.js
b/client/assets/libs/engine.io.tools.js
index 4846df081c2d9d8783e92cc07e61b05b12dedc23..73fae02e64f4fce1851c699104699789d32594a5 100644
(file)
--- 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 =
2
000;
+ var reconnect_delay =
4
000;
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();
}