Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
mykola-mokhnach committed Jul 3, 2024
1 parent c4afe79 commit 0560532
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions lib/subprocess.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,14 +211,10 @@ class SubProcess extends EventEmitter {
}
this.emit(event, code, signal);

// make sure to reset our exit expectations
this.expectingExit = false;
});

this.proc.once('close', () => {
// finally clean up the proc
this.proc?.removeAllListeners();
// finally clean up the proc and make sure to reset our exit
// expectations
this.proc = null;
this.expectingExit = false;
});

// if the user hasn't given us a startDetector, instead just resolve
Expand Down

0 comments on commit 0560532

Please sign in to comment.