fix
This commit is contained in:
@@ -70,8 +70,8 @@ async function start(id: number, disconnect: () => void) {
|
|||||||
const app = new Koa();
|
const app = new Koa();
|
||||||
const server = stoppable(
|
const server = stoppable(
|
||||||
useHTTPS
|
useHTTPS
|
||||||
? https.createServer(ssl, void app.callback())
|
? https.createServer(ssl, app.callback())
|
||||||
: http.createServer(void app.callback()),
|
: http.createServer(app.callback()),
|
||||||
ShutdownHelper.connectionGraceTimeout
|
ShutdownHelper.connectionGraceTimeout
|
||||||
);
|
);
|
||||||
const router = new Router();
|
const router = new Router();
|
||||||
@@ -163,8 +163,8 @@ async function start(id: number, disconnect: () => void) {
|
|||||||
ShutdownHelper.add("metrics", ShutdownOrder.last, () => Metrics.flush());
|
ShutdownHelper.add("metrics", ShutdownOrder.last, () => Metrics.flush());
|
||||||
|
|
||||||
// Handle shutdown signals
|
// Handle shutdown signals
|
||||||
process.once("SIGTERM", () => void ShutdownHelper.execute());
|
process.once("SIGTERM", () => ShutdownHelper.execute());
|
||||||
process.once("SIGINT", () => void ShutdownHelper.execute());
|
process.once("SIGINT", () => ShutdownHelper.execute());
|
||||||
}
|
}
|
||||||
|
|
||||||
void throng({
|
void throng({
|
||||||
|
|||||||
Reference in New Issue
Block a user