Skip to content

Commit

Permalink
Merge pull request #6 from dreusel/fix/fix-#60-alexguan#61
Browse files Browse the repository at this point in the history
Apply fix for alexguan#60 and alexguan#61
  • Loading branch information
dreusel authored Dec 13, 2020
2 parents 92355a1 + d05c592 commit 224ef5a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/ConnectionManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 224ef5a

Please sign in to comment.