Skip to content

Commit a8fd5b9

Browse files
committed
fix node abort signal
1 parent 2302e82 commit a8fd5b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/node/src/lib/abort.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class AbortController {
6161
* @param timeoutMs - Set a request timeout, after which the request is cancelled.
6262
*/
6363
export const abortSignalAfterTimeout = (timeoutMs: number) => {
64-
if (detectRuntime() === 'web-worker') {
64+
if (detectRuntime() === 'cloudflare-worker') {
6565
return [] // TODO: this is broken in cloudflare workers, otherwise results in "A hanging Promise was canceled..." error.
6666
}
6767
const ac = new (global.AbortController || AbortController)()

0 commit comments

Comments
 (0)