mirror of
https://github.com/lifegpc/eh-downloader.git
synced 2026-07-08 01:31:00 +08:00
Fix failed page progress
This commit is contained in:
@@ -57,7 +57,6 @@ export default class Task extends Component<Props, State> {
|
||||
if (!(this.props.flags & map_taskstatus(task.status))) {
|
||||
return <div data-id={task.base.id}></div>;
|
||||
}
|
||||
console.log(task);
|
||||
let error_div = null;
|
||||
if (task.status === TaskStatus.Failed) {
|
||||
error_div = (
|
||||
|
||||
@@ -364,6 +364,7 @@ export async function download_task(
|
||||
const errors: unknown[] = [];
|
||||
function try_download(a: number) {
|
||||
if (a >= max_retry_count) {
|
||||
m.remove_details(i.index);
|
||||
reject(errors);
|
||||
}
|
||||
download().then(resolve).catch((e) => {
|
||||
|
||||
Reference in New Issue
Block a user