mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
fix: continue http downloads
This commit is contained in:
parent
53b0c0b08f
commit
aa0321df8f
3 changed files with 37 additions and 46 deletions
|
@ -9,7 +9,6 @@ import { RealDebridClient } from "./services/download/real-debrid";
|
|||
import { HydraApi } from "./services/hydra-api";
|
||||
import { uploadGamesBatch } from "./services/library-sync";
|
||||
import { Aria2 } from "./services/aria2";
|
||||
import { PythonRPC } from "./services/python-rpc";
|
||||
|
||||
const loadState = async (userPreferences: UserPreferences | null) => {
|
||||
import("./events");
|
||||
|
@ -43,11 +42,7 @@ const loadState = async (userPreferences: UserPreferences | null) => {
|
|||
},
|
||||
});
|
||||
|
||||
if (nextQueueItem?.game.status === "active") {
|
||||
DownloadManager.startRPC(nextQueueItem.game, seedList);
|
||||
} else {
|
||||
PythonRPC.spawn();
|
||||
}
|
||||
await DownloadManager.startRPC(nextQueueItem?.game, seedList);
|
||||
|
||||
startMainLoop();
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue