Skip to content

Commit

Permalink
fix: timeout() should not override predefined _timeoutSignal
Browse files Browse the repository at this point in the history
  • Loading branch information
antongolub committed Jan 10, 2025
1 parent a38d471 commit c8f7ef2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ export class ProcessPromise extends Promise<ProcessOutput> {
return this
}

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

this._timeout = parseDuration(d)
Expand Down

0 comments on commit c8f7ef2

Please sign in to comment.