From 9884a39abc6e9be48b4149a4643bf5c0b7db5b21 Mon Sep 17 00:00:00 2001 From: Hachi-R Date: Sat, 21 Dec 2024 16:44:49 -0300 Subject: [PATCH] refactor: replace resumeSeeding with resumeDownload in torrenting event handler --- src/main/events/torrenting/resume-game-seed.ts | 2 +- src/main/services/download/download-manager.ts | 8 -------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/src/main/events/torrenting/resume-game-seed.ts b/src/main/events/torrenting/resume-game-seed.ts index 6e74679d..896617b0 100644 --- a/src/main/events/torrenting/resume-game-seed.ts +++ b/src/main/events/torrenting/resume-game-seed.ts @@ -24,7 +24,7 @@ const resumeGameSeed = async ( .update({ id: gameId }, { status: "seeding", shouldSeed: true }); }); - await DownloadManager.resumeSeeding(gameId, game.uri!, game.downloadPath!); + await DownloadManager.resumeDownload(game); }; registerEvent("resumeGameSeed", resumeGameSeed); diff --git a/src/main/services/download/download-manager.ts b/src/main/services/download/download-manager.ts index c02d6d68..585f9700 100644 --- a/src/main/services/download/download-manager.ts +++ b/src/main/services/download/download-manager.ts @@ -221,14 +221,6 @@ export class DownloadManager { .catch(() => {}); } - static async resumeSeeding( - _gameId: number, - _magnet: string, - _savePath: string - ) { - // await TorrentDownloader.resumeSeeding(gameId, magnet, savePath); - } - static async pauseDownload() { await PythonRPC.rpc .post("/action", {