Do not wait on downloads to finish prerollling
This commit is contained in:
parent
95536b36be
commit
994e7ad0a6
@ -156,6 +156,12 @@ export class Download extends BaseDownload {
|
|||||||
}
|
}
|
||||||
console.log("starting", this.toString(), this.toMsg());
|
console.log("starting", this.toString(), this.toMsg());
|
||||||
this.changeState(RUNNING);
|
this.changeState(RUNNING);
|
||||||
|
|
||||||
|
// Do NOT await
|
||||||
|
this.reallyStart();
|
||||||
|
}
|
||||||
|
|
||||||
|
private async reallyStart() {
|
||||||
try {
|
try {
|
||||||
if (!this.prerolled) {
|
if (!this.prerolled) {
|
||||||
await this.maybePreroll();
|
await this.maybePreroll();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user