From 2e711fd92d78360d7783b1aa4252f344ee978ebb Mon Sep 17 00:00:00 2001 From: sfc-gh-ext-simba-lf <115584722+sfc-gh-ext-simba-lf@users.noreply.github.com> Date: Thu, 19 Oct 2023 10:24:12 -0700 Subject: [PATCH] SNOW-926029: Check for renewing/connecting state when validating a connection (#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 --- lib/services/sf.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/services/sf.js b/lib/services/sf.js index e0f714842..c183bad70 100644 --- a/lib/services/sf.js +++ b/lib/services/sf.js @@ -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 ()