fix: start another download after finishing one

This commit is contained in:
Zamitto 2024-08-05 19:49:10 -03:00
parent 4b7a0ff402
commit f3f78248ef

View file

@ -122,9 +122,11 @@ export class RealDebridDownloader {
}
static async pauseDownload() {
const gid = this.downloads.get(this.downloadingGame!.id!);
if (gid) {
await HTTPDownload.pauseDownload(gid);
if (this.downloadingGame) {
const gid = this.downloads.get(this.downloadingGame.id);
if (gid) {
await HTTPDownload.pauseDownload(gid);
}
}
this.realDebridTorrentId = null;