mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-02 16:23:48 +03:00
lint
This commit is contained in:
parent
4b8569bd5e
commit
90b320952b
@ -218,7 +218,7 @@ export class DownloadManager {
|
||||
action: "pause",
|
||||
game_id: gameId,
|
||||
} as PauseDownloadPayload)
|
||||
.catch(() => { });
|
||||
.catch(() => {});
|
||||
}
|
||||
|
||||
static async resumeSeeding(
|
||||
@ -235,7 +235,7 @@ export class DownloadManager {
|
||||
action: "pause",
|
||||
game_id: this.downloadingGameId,
|
||||
} as PauseDownloadPayload)
|
||||
.catch(() => { });
|
||||
.catch(() => {});
|
||||
|
||||
WindowManager.mainWindow?.setProgressBar(-1);
|
||||
|
||||
|
@ -3,21 +3,21 @@ import { DownloadManager } from "./download/download-manager";
|
||||
import { sleep } from "@main/helpers";
|
||||
|
||||
export const startSeedProcess = async () => {
|
||||
const seedList = await gameRepository.find({
|
||||
where: {
|
||||
shouldSeed: true,
|
||||
downloader: 1,
|
||||
progress: 1,
|
||||
},
|
||||
});
|
||||
const seedList = await gameRepository.find({
|
||||
where: {
|
||||
shouldSeed: true,
|
||||
downloader: 1,
|
||||
progress: 1,
|
||||
},
|
||||
});
|
||||
|
||||
if (seedList.length === 0) return;
|
||||
if (seedList.length === 0) return;
|
||||
|
||||
await sleep(1000);
|
||||
// wait for python process to start
|
||||
await sleep(1000);
|
||||
// wait for python process to start
|
||||
|
||||
seedList.map(async (game) => {
|
||||
await DownloadManager.startDownload(game);
|
||||
await sleep(100);
|
||||
});
|
||||
seedList.map(async (game) => {
|
||||
await DownloadManager.startDownload(game);
|
||||
await sleep(100);
|
||||
});
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user