fix (client retry) check if explicitly disconnected
This commit is contained in:
parent
c82afb34b5
commit
f483e3153a
1 changed files with 3 additions and 0 deletions
|
@ -188,6 +188,9 @@ function connect(){
|
||||||
|
|
||||||
setTimeout(
|
setTimeout(
|
||||||
function retryTimeout(){
|
function retryTimeout(){
|
||||||
|
if (client.explicitlyDisconnected) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
client.retriesRemaining--;
|
client.retriesRemaining--;
|
||||||
client.connect();
|
client.connect();
|
||||||
}.bind(null,client),
|
}.bind(null,client),
|
||||||
|
|
Loading…
Reference in a new issue