Skip to content

Commit

Permalink
fix: not kill child if it has exception handlers
Browse files Browse the repository at this point in the history
  • Loading branch information
wclr committed Oct 23, 2020
1 parent ff8ede4 commit 988eba1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,9 @@ export const runDev = (
if (child.connected === undefined || child.connected === true) {
log.debug('Disconnecting from child')
child.disconnect()
//if (!willTerminate) {
killChild()
//}
if (!willTerminate) {
killChild()
}
}
}

Expand All @@ -221,7 +221,7 @@ export const runDev = (
compiler.init()
}
compiler.clearErrorCompile()

if (isManualRestart === true) {
notify('Restarting', 'manual restart from user')
} else {
Expand Down

0 comments on commit 988eba1

Please sign in to comment.