mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-21 01:53:57 +00:00
fix: keeping last status available on rpc
This commit is contained in:
@@ -74,7 +74,7 @@ export class DownloadManager {
|
||||
if (game.downloader === Downloader.RealDebrid) {
|
||||
throw new Error();
|
||||
} else {
|
||||
TorrentDownloader.resumeDownload(game);
|
||||
TorrentDownloader.startDownload(game);
|
||||
this.currentDownloader = Downloader.Torrent;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -123,10 +123,6 @@ export class TorrentDownloader {
|
||||
this.downloadingGameId = -1;
|
||||
}
|
||||
|
||||
static resumeDownload(game: Game) {
|
||||
this.startDownload(game);
|
||||
}
|
||||
|
||||
static async startDownload(game: Game) {
|
||||
if (!this.torrentClient) this.spawn();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user