mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-11 13:56:16 +00:00
fix: duplicate download with real debrid
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user