mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
refactor: replace resumeSeeding with resumeDownload in torrenting event handler
This commit is contained in:
parent
90b320952b
commit
9884a39abc
2 changed files with 1 additions and 9 deletions
|
@ -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", {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue