Do not attempt to restart bg complete
This commit is contained in:
parent
9c159d5d24
commit
95536b36be
@ -132,6 +132,11 @@ export class Download extends BaseDownload {
|
|||||||
this.updateStateFromBrowser();
|
this.updateStateFromBrowser();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (state[0].state == "complete") {
|
||||||
|
this.changeState(DONE);
|
||||||
|
this.updateStateFromBrowser();
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (!state[0].canResume) {
|
if (!state[0].canResume) {
|
||||||
throw new Error("Cannot resume");
|
throw new Error("Cannot resume");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user