Skip to content

Commit 5d148f7

Browse files
authored
Merge pull request #474 from olafbuitelaar/patch-1
AbortHandler's timeout should always be cleared
2 parents 1119478 + 41c68d2 commit 5d148f7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/fetcher/url_handler.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,10 @@ async function get(url, options) {
6666
...options,
6767
signal: controller.signal,
6868
credentials: options.withCredentials ? 'include' : 'omit',
69+
})
70+
.finally(()=>{
71+
clearTimeout(timer);
6972
});
70-
clearTimeout(timer);
7173

7274
const error = handleError(response);
7375
if (error) {

0 commit comments

Comments
 (0)