diff --git a/src/main/server/watch-worker.ts b/src/main/server/watch-worker.ts index fd7b09b67..8bcc2a91d 100644 --- a/src/main/server/watch-worker.ts +++ b/src/main/server/watch-worker.ts @@ -116,3 +116,8 @@ process.on('message', (message: Message) => { init(message.id, filePath, options) } }) + +process.on('disconnect', () => { + console.log('Parent process exited, shutting down...') + process.exit() +})