Merge pull request #189 from tenbits/fix/ignore-retry-when-disconnected

fix (client retry) check if explicitly disconnected
This commit is contained in:
Brandon Nozaki Miller 2021-02-26 09:07:55 -08:00 committed by GitHub
commit a335ce43e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -188,6 +188,9 @@ function connect(){
setTimeout(
function retryTimeout(){
if (client.explicitlyDisconnected) {
return;
}
client.retriesRemaining--;
client.connect();
}.bind(null,client),