mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-03 00:33:49 +03:00
lint
This commit is contained in:
parent
86d3f7ac81
commit
64b1795ddd
@ -62,13 +62,13 @@ export class PythonInstance {
|
|||||||
|
|
||||||
public static async getStatus() {
|
public static async getStatus() {
|
||||||
if (this.downloadingGameId === -1) return null;
|
if (this.downloadingGameId === -1) return null;
|
||||||
|
|
||||||
const response = await this.rpc.get<LibtorrentPayload | null>("/status");
|
const response = await this.rpc.get<LibtorrentPayload | null>("/status");
|
||||||
|
|
||||||
if (response.data === null) return null;
|
if (response.data === null) return null;
|
||||||
|
|
||||||
console.log(response.data);
|
console.log(response.data);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const {
|
const {
|
||||||
progress,
|
progress,
|
||||||
@ -106,7 +106,11 @@ export class PythonInstance {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (progress === 1 && !isCheckingFiles && status !== LibtorrentStatus.Seeding) {
|
if (
|
||||||
|
progress === 1 &&
|
||||||
|
!isCheckingFiles &&
|
||||||
|
status !== LibtorrentStatus.Seeding
|
||||||
|
) {
|
||||||
this.downloadingGameId = -1;
|
this.downloadingGameId = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user