Merge pull request #189 from tenbits/fix/ignore-retry-when-disconnected
fix (client retry) check if explicitly disconnected
This commit is contained in:
commit
a335ce43e6
1 changed files with 3 additions and 0 deletions
|
@ -188,6 +188,9 @@ function connect(){
|
|||
|
||||
setTimeout(
|
||||
function retryTimeout(){
|
||||
if (client.explicitlyDisconnected) {
|
||||
return;
|
||||
}
|
||||
client.retriesRemaining--;
|
||||
client.connect();
|
||||
}.bind(null,client),
|
||||
|
|
Loading…
Reference in a new issue