Browse Source

Made child process exit handling more robust

master
Ben Ashton 2 years ago
parent
commit
70c3c428ac
  1. 2
      cli.mjs

2
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();
});

Loading…
Cancel
Save