Do not attempt to restart bg complete

This commit is contained in:
Nils Maier 2019-09-04 13:14:31 +02:00
parent 9c159d5d24
commit 95536b36be

View File

@ -132,6 +132,11 @@ export class Download extends BaseDownload {
this.updateStateFromBrowser();
return;
}
if (state[0].state == "complete") {
this.changeState(DONE);
this.updateStateFromBrowser();
return;
}
if (!state[0].canResume) {
throw new Error("Cannot resume");
}