Skip to content

Commit eacb15a

Browse files
committed
Add a simple timeout to sharetask
1 parent d44c0f4 commit eacb15a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/cloud/src/ShareService.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ export class ShareService {
4545
"User-Agent": getUserAgent(),
4646
},
4747
body: JSON.stringify({ taskId, visibility }),
48+
signal: AbortSignal.timeout(10000),
4849
})
4950

5051
if (!response.ok) {

0 commit comments

Comments
 (0)