mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-01-23 13:34:54 +03:00
refactor: replace resumeSeeding with resumeDownload in torrenting event handler
This commit is contained in:
parent
90b320952b
commit
9884a39abc
@ -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);
|
||||||
|
@ -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", {
|
||||||
|
Loading…
Reference in New Issue
Block a user