diff --git a/lib/ConnectionManager.js b/lib/ConnectionManager.js index a2b7e7b..290f63f 100644 --- a/lib/ConnectionManager.js +++ b/lib/ConnectionManager.js @@ -222,6 +222,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) {