From 70c3c428ac035aad96628f0827459ede70b7f9ef Mon Sep 17 00:00:00 2001 From: Ben Ashton Date: Sun, 25 Sep 2022 18:54:24 -0600 Subject: [PATCH] Made child process exit handling more robust --- cli.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli.mjs b/cli.mjs index a9798d7..fd6a768 100644 --- a/cli.mjs +++ b/cli.mjs @@ -79,6 +79,6 @@ let child = spawn( ); // Clean up temporary files once the child exits -child.on('exit', async () => { +child.on('close', async () => { await cleanup(); });