mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-25 11:51:02 +00:00
feat: restart downloads and move seed process initiation to main.ts
This commit is contained in:
@@ -8,7 +8,6 @@ import crypto from "node:crypto";
|
||||
import { logger } from "./logger";
|
||||
import { Readable } from "node:stream";
|
||||
import { app, dialog } from "electron";
|
||||
import { startSeedProcess } from "./seed";
|
||||
|
||||
const binaryNameByPlatform: Partial<Record<NodeJS.Platform, string>> = {
|
||||
darwin: "hydra-python-rpc",
|
||||
@@ -84,8 +83,6 @@ export class PythonRPC {
|
||||
this.logStderr(childProcess.stderr);
|
||||
|
||||
this.pythonProcess = childProcess;
|
||||
|
||||
startSeedProcess();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -13,11 +13,8 @@ export const startSeedProcess = async () => {
|
||||
|
||||
if (seedList.length === 0) return;
|
||||
|
||||
await sleep(1000);
|
||||
// wait for python process to start
|
||||
|
||||
seedList.map(async (game) => {
|
||||
await DownloadManager.startDownload(game);
|
||||
await sleep(100);
|
||||
await sleep(300);
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user