diff --git a/dao/client.js b/dao/client.js index 32ec646..fc5e383 100644 --- a/dao/client.js +++ b/dao/client.js @@ -188,6 +188,9 @@ function connect(){ setTimeout( function retryTimeout(){ + if (client.explicitlyDisconnected) { + return; + } client.retriesRemaining--; client.connect(); }.bind(null,client),