Skip to content

Commit 988eba1

Browse files
committed
fix: not kill child if it has exception handlers
1 parent ff8ede4 commit 988eba1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -209,9 +209,9 @@ export const runDev = (
209209
if (child.connected === undefined || child.connected === true) {
210210
log.debug('Disconnecting from child')
211211
child.disconnect()
212-
//if (!willTerminate) {
213-
killChild()
214-
//}
212+
if (!willTerminate) {
213+
killChild()
214+
}
215215
}
216216
}
217217

@@ -221,7 +221,7 @@ export const runDev = (
221221
compiler.init()
222222
}
223223
compiler.clearErrorCompile()
224-
224+
225225
if (isManualRestart === true) {
226226
notify('Restarting', 'manual restart from user')
227227
} else {

0 commit comments

Comments
 (0)