parent
545d78ad61
commit
7bfffd7598
@ -266,7 +266,6 @@ export class Manager extends EventEmitter {
|
|||||||
changedState(download: Download, oldState: number, newState: number) {
|
changedState(download: Download, oldState: number, newState: number) {
|
||||||
if (oldState === RUNNING) {
|
if (oldState === RUNNING) {
|
||||||
this.running.delete(download);
|
this.running.delete(download);
|
||||||
this.maybeNotifyFinished();
|
|
||||||
}
|
}
|
||||||
if (newState === QUEUED) {
|
if (newState === QUEUED) {
|
||||||
this.resetScheduler();
|
this.resetScheduler();
|
||||||
@ -279,7 +278,7 @@ export class Manager extends EventEmitter {
|
|||||||
this.running.add(download);
|
this.running.add(download);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
this.startNext();
|
this.startNext().catch(console.error);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user