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;