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

View file

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