diff options
author | Sam Wilkins <samwilkins333@gmail.com> | 2020-01-09 18:12:21 -0500 |
---|---|---|
committer | Sam Wilkins <samwilkins333@gmail.com> | 2020-01-09 18:12:21 -0500 |
commit | 13ad9e65697101574893a1fcdf49e018391d0d33 (patch) | |
tree | 73d8becbaeec4f9088d1f4e2cff71bf8462edf29 /src/server/Session/session.ts | |
parent | c809ac1cfddf71d95bdfb99c030e83579dd4e37b (diff) |
finally
Diffstat (limited to 'src/server/Session/session.ts')
-rw-r--r-- | src/server/Session/session.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/server/Session/session.ts b/src/server/Session/session.ts index 7534a5d03..a0a52f128 100644 --- a/src/server/Session/session.ts +++ b/src/server/Session/session.ts @@ -660,7 +660,6 @@ export namespace Session { this.lifecycleNotification(green(`listening on ${this.serverPort}...`)); } this.shouldServerBeResponsive = true; - resolve(); } catch (error) { // if we expect the server to be unavailable, i.e. during compilation, // the listening variable is false, activeExit will return early and the child @@ -672,6 +671,8 @@ export namespace Session { this.lifecycleNotification(yellow(`the server has encountered ${this.pollingFailureCount} of ${this.pollingFailureTolerance} tolerable failures`)); } } + } finally { + resolve(); } }, 1000 * this.pollingIntervalSeconds); }); |