Do not wait on downloads to finish prerollling

This commit is contained in:
Nils Maier 2019-09-04 13:15:42 +02:00
parent 95536b36be
commit 994e7ad0a6

View File

@ -156,6 +156,12 @@ export class Download extends BaseDownload {
}
console.log("starting", this.toString(), this.toMsg());
this.changeState(RUNNING);
// Do NOT await
this.reallyStart();
}
private async reallyStart() {
try {
if (!this.prerolled) {
await this.maybePreroll();