fix: handle errors in tasksServer.close() during SIGTERM
Co-authored-by: ajnart <49837342+ajnart@users.noreply.github.com>
This commit is contained in:
1 parent
9951f88926
commit
926066365d
1 file changed
+1
-1
@@ -300,7 +300,7 @@ app.prepare().then(async () => {
|
||||
logger.info("SIGTERM");
|
||||
wssHandler.broadcastReconnectNotification();
|
||||
wss.close();
|
||||
tasksServer.close();
|
||||
tasksServer.close().catch((err) => logger.error("Failed to close tasks server", err));
|
||||
server.close();
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user