fix: duplicate download with real debrid

This commit is contained in:
Zamitto 2024-08-05 18:55:35 -03:00
parent e1ef8a9193
commit fab248de99

View File

@ -131,11 +131,9 @@ export class RealDebridDownloader {
}
static async startDownload(game: Game) {
this.downloadingGame = game;
if (this.downloads.has(game.id)) {
await this.resumeDownload(game.id!);
this.downloadingGame = game;
return;
}
@ -156,6 +154,7 @@ export class RealDebridDownloader {
);
this.downloads.set(game.id!, gid);
this.downloadingGame = game;
}
}