mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-30 22:31:03 +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) {
|
static async startDownload(game: Game) {
|
||||||
this.downloadingGame = game;
|
|
||||||
|
|
||||||
if (this.downloads.has(game.id)) {
|
if (this.downloads.has(game.id)) {
|
||||||
await this.resumeDownload(game.id!);
|
await this.resumeDownload(game.id!);
|
||||||
|
this.downloadingGame = game;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -156,6 +154,7 @@ export class RealDebridDownloader {
|
|||||||
);
|
);
|
||||||
|
|
||||||
this.downloads.set(game.id!, gid);
|
this.downloads.set(game.id!, gid);
|
||||||
|
this.downloadingGame = game;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user