Skip to content

Commit c8f7ef2

Browse files
committed
fix: timeout() should not override predefined _timeoutSignal
1 parent a38d471 commit c8f7ef2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ export class ProcessPromise extends Promise<ProcessOutput> {
520520
return this
521521
}
522522

523-
timeout(d: Duration, signal = $.timeoutSignal): ProcessPromise {
523+
timeout(d: Duration, signal = this._timeoutSignal || $.timeoutSignal): ProcessPromise {
524524
if (this._resolved) return this
525525

526526
this._timeout = parseDuration(d)

0 commit comments

Comments
 (0)