From a0337d04894e5c0a87b7313420e4d6e8a12fad94 Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 16 Mar 2018 22:30:08 +0900 Subject: [PATCH] Destroy background process when game ended --- src/common/othello/ai/back.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/common/othello/ai/back.ts b/src/common/othello/ai/back.ts index 55c77e6b3..c3a74a834 100644 --- a/src/common/othello/ai/back.ts +++ b/src/common/othello/ai/back.ts @@ -88,6 +88,8 @@ process.on('message', async msg => { } }); //#endregion + + process.exit(); } // 打たれたとき