mirror of
https://github.com/lifegpc/eh-downloader.git
synced 2026-07-08 01:31:00 +08:00
Fix failed details not removed
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user