Skip to content

Commit

Permalink
Apply fix for alexguan#60 and alexguan#61
Browse files Browse the repository at this point in the history
  • Loading branch information
dreusel committed Dec 13, 2020
1 parent 85a13f0 commit d05c592
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 @@ -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) {
Expand Down

0 comments on commit d05c592

Please sign in to comment.