fix: fixing multiple connections

This commit is contained in:
Chubby Granny Chaser
2025-04-09 07:57:00 +01:00
parent 7fd0894b56
commit 1835adf8b4
6 changed files with 66 additions and 50 deletions

View File

@@ -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;

View File

@@ -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 }
);

View File

@@ -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,
};
}
}