Skip to content

Commit dfc44ff

Browse files
committed
PEER-220: Fix child process termination on localhost
Signed-off-by: SeeuSim <[email protected]>
1 parent 2d19d5e commit dfc44ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/matching/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ server.listen(port, () => {
1919

2020
const shutdown = () => {
2121
workers.forEach(({ controller, worker }) => {
22-
controller.abort();
22+
controller.abort('Main process shutdown'); // Force an abort error to kill child processes
2323
worker.kill();
2424
});
2525
io.close(() => {

0 commit comments

Comments
 (0)