mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-11 13:56:16 +00:00
refactor: replace resumeSeeding with resumeDownload in torrenting event handler
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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", {
|
||||
|
||||
Reference in New Issue
Block a user