Skip to content

Commit

Permalink
Merge pull request #474 from olafbuitelaar/patch-1
Browse files Browse the repository at this point in the history
AbortHandler's timeout should always be cleared
  • Loading branch information
Rapha0511 authored Sep 5, 2024
2 parents 1119478 + 41c68d2 commit 5d148f7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/fetcher/url_handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,10 @@ async function get(url, options) {
...options,
signal: controller.signal,
credentials: options.withCredentials ? 'include' : 'omit',
})
.finally(()=>{
clearTimeout(timer);
});
clearTimeout(timer);

const error = handleError(response);
if (error) {
Expand Down

0 comments on commit 5d148f7

Please sign in to comment.