Skip to content

Commit 0b342e8

Browse files
committed
CR
1 parent 94e637b commit 0b342e8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/internal/child_process.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -531,10 +531,9 @@ ChildProcess.prototype.kill = function(sig) {
531531

532532
ChildProcess.prototype[SymbolAsyncDispose] = async function() {
533533
if (!this.closed) {
534-
const promise = EventEmitter.once(this, 'close');
535534
const ret = this.kill(this[kKillSignal]);
536535
assert(ret, 'unexpected kill failure');
537-
await promise;
536+
await EventEmitter.once(this, 'close');
538537
this.emit('error', new AbortError());
539538
}
540539
};

0 commit comments

Comments
 (0)