fix (client retry) check if explicitly disconnected

This commit is contained in:
Alex Kit 2021-02-26 11:07:03 +01:00
parent c82afb34b5
commit f483e3153a

View file

@ -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),