Skip to content

Commit

Permalink
Fix failed details not removed
Browse files Browse the repository at this point in the history
  • Loading branch information
lifegpc committed Dec 25, 2023
1 parent 1f326bc commit 7933a18
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tasks/download.ts
Original file line number Diff line number Diff line change
Expand Up @@ -396,11 +396,13 @@ export async function download_task(
}
if (e instanceof DOMException) {
if (e.name == "AbortError") {
m.remove_details(i.index);
reject(new TimeoutError());
return;
}
}
if (e instanceof TimeoutError) {
m.remove_details(i.index);
reject(e);
return;
}
Expand Down

0 comments on commit 7933a18

Please sign in to comment.