diff --git a/lib/ConnectionManager.js b/lib/ConnectionManager.js index d3c0226..6c56d76 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) {