refactor: replace resumeSeeding with resumeDownload in torrenting event handler

This commit is contained in:
Hachi-R 2024-12-21 16:44:49 -03:00
parent 90b320952b
commit 9884a39abc
2 changed files with 1 additions and 9 deletions

View File

@ -24,7 +24,7 @@ const resumeGameSeed = async (
.update({ id: gameId }, { status: "seeding", shouldSeed: true }); .update({ id: gameId }, { status: "seeding", shouldSeed: true });
}); });
await DownloadManager.resumeSeeding(gameId, game.uri!, game.downloadPath!); await DownloadManager.resumeDownload(game);
}; };
registerEvent("resumeGameSeed", resumeGameSeed); registerEvent("resumeGameSeed", resumeGameSeed);

View File

@ -221,14 +221,6 @@ export class DownloadManager {
.catch(() => {}); .catch(() => {});
} }
static async resumeSeeding(
_gameId: number,
_magnet: string,
_savePath: string
) {
// await TorrentDownloader.resumeSeeding(gameId, magnet, savePath);
}
static async pauseDownload() { static async pauseDownload() {
await PythonRPC.rpc await PythonRPC.rpc
.post("/action", { .post("/action", {