mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-03 08:43:48 +03:00
Fixing downloads by replacing the torrent client
This commit is contained in:
parent
2aeeeaf15b
commit
fea59514bc
@ -16,7 +16,7 @@ export const startAria2 = () => {
|
|||||||
"--allow-overwrite=true",
|
"--allow-overwrite=true",
|
||||||
"--log-level=debug",
|
"--log-level=debug",
|
||||||
"--no-conf",
|
"--no-conf",
|
||||||
"--disk-cache=128M"
|
"--disk-cache=128M",
|
||||||
],
|
],
|
||||||
{ stdio: "inherit", windowsHide: true }
|
{ stdio: "inherit", windowsHide: true }
|
||||||
);
|
);
|
||||||
@ -27,7 +27,9 @@ export const startAria2 = () => {
|
|||||||
|
|
||||||
aria2Process.on("exit", (code, signal) => {
|
aria2Process.on("exit", (code, signal) => {
|
||||||
if (code !== 0) {
|
if (code !== 0) {
|
||||||
console.error(`Aria2 process exited with code ${code} and signal ${signal}`);
|
console.error(
|
||||||
|
`Aria2 process exited with code ${code} and signal ${signal}`
|
||||||
|
);
|
||||||
} else {
|
} else {
|
||||||
console.log("Aria2 process exited successfully");
|
console.log("Aria2 process exited successfully");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user