aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Wilkins <samwilkins333@gmail.com>2020-01-09 18:12:21 -0500
committerSam Wilkins <samwilkins333@gmail.com>2020-01-09 18:12:21 -0500
commit13ad9e65697101574893a1fcdf49e018391d0d33 (patch)
tree73d8becbaeec4f9088d1f4e2cff71bf8462edf29
parentc809ac1cfddf71d95bdfb99c030e83579dd4e37b (diff)
finally
-rw-r--r--src/server/Session/session.ts3
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);
});