fix: keeping last status available on rpc

This commit is contained in:
Chubby Granny Chaser 2024-06-27 17:38:20 +01:00
parent c1c06c2d20
commit c26315219e
No known key found for this signature in database
3 changed files with 3 additions and 9 deletions

View file

@ -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;
}
}

View file

@ -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();