Skip to content

Commit

Permalink
fix: "Channel closed" error in child on graceful shutdown after SIGTERM
Browse files Browse the repository at this point in the history
fixes wclr#320
  • Loading branch information
everhardt committed Jul 15, 2022
1 parent 32bdc92 commit 54e7811
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,6 @@ export const runDev = (
child.stopping = true
child.respawn = true
if (child.connected === undefined || child.connected === true) {
log.debug('Disconnecting from child')
child.disconnect()
if (!willTerminate) {
killChild()
}
Expand Down

0 comments on commit 54e7811

Please sign in to comment.