mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-21 01:53:57 +00:00
fix: fixing multiple connections
This commit is contained in:
@@ -45,13 +45,13 @@ export class SevenZip {
|
||||
args.push("-o" + outputPath);
|
||||
}
|
||||
|
||||
console.log(this.binaryPath, args);
|
||||
|
||||
const child = cp.execFile(this.binaryPath, args, {
|
||||
cwd,
|
||||
});
|
||||
|
||||
child.once("exit", (code) => {
|
||||
console.log("EXIT CALLED", code, filePath);
|
||||
|
||||
if (code === 0) {
|
||||
successCb();
|
||||
return;
|
||||
|
||||
@@ -16,12 +16,6 @@ export class Aria2 {
|
||||
"--rpc-listen-all",
|
||||
"--file-allocation=none",
|
||||
"--allow-overwrite=true",
|
||||
"-s",
|
||||
"16",
|
||||
"-x",
|
||||
"16",
|
||||
"-k",
|
||||
"1M",
|
||||
],
|
||||
{ stdio: "inherit", windowsHide: true }
|
||||
);
|
||||
|
||||
@@ -371,6 +371,7 @@ export class DownloadManager {
|
||||
game_id: downloadId,
|
||||
url: downloadUrl,
|
||||
save_path: download.downloadPath,
|
||||
allow_multiple_connections: true,
|
||||
};
|
||||
}
|
||||
case Downloader.TorBox: {
|
||||
@@ -383,6 +384,7 @@ export class DownloadManager {
|
||||
url,
|
||||
save_path: download.downloadPath,
|
||||
out: name,
|
||||
allow_multiple_connections: true,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user