Skip to content

Commit

Permalink
SNOW-926029: Check for renewing/connecting state when validating a co…
Browse files Browse the repository at this point in the history
…nnection (#669)

* SNOW-926029: Check for stateRenewing when validating a connection

* SNOW-926029: Check for stateRenewing when validating a connection

* SNOW-926029: Check for stateConnecting when validating a connection
  • Loading branch information
sfc-gh-ext-simba-lf authored Oct 19, 2023
1 parent bcdcd99 commit 2e711fd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/services/sf.js
Original file line number Diff line number Diff line change
Expand Up @@ -485,9 +485,10 @@ function SnowflakeService(connectionConfig, httpClient, config)
operationQueue.length = 0;
};

this.isConnected = function ()
{
return currentState === stateConnected;
this.isConnected = function () {
return currentState === stateConnected ||
currentState === stateConnecting ||
currentState === stateRenewing;
};

this.getServiceName = function ()
Expand Down

0 comments on commit 2e711fd

Please sign in to comment.