Made child process exit handling more robust

This commit is contained in:
Ben Ashton 2022-09-25 18:54:24 -06:00
parent 48afa46adc
commit 70c3c428ac

View File

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