diff --git a/lib/ConnectionManager.js b/lib/ConnectionManager.js index 51ab57e..b32028f 100644 --- a/lib/ConnectionManager.js +++ b/lib/ConnectionManager.js @@ -214,6 +214,10 @@ ConnectionManager.prototype.getSessionTimeout = function () { ConnectionManager.prototype.connect = function () { var self = this; + if (self.state === STATES.CLOSING) { + return; + } + self.setState(STATES.CONNECTING); self.findNextServer(function (server) {