Additional API changes

This commit is contained in:
Nathan Byrd 2023-10-10 19:43:58 +00:00
parent 577992bbe5
commit 498c4a6082
2 changed files with 1 additions and 5 deletions

View File

@ -358,7 +358,7 @@ module.exports = class ArchiveUtil {
output += data; output += data;
}); });
proc.once('exit', exitCode => { proc.onExit(exitCode => {
if (exitCode) { if (exitCode) {
return cb( return cb(
Errors.ExternalProcess(`List failed with exit code: ${exitCode}`) Errors.ExternalProcess(`List failed with exit code: ${exitCode}`)

View File

@ -485,10 +485,6 @@ exports.getModule = class TransferFileModule extends MenuModule {
} }
}); });
externalProc.once('close', () => {
return this.restorePipeAfterExternalProc();
});
externalProc.onExit(exitCode => { externalProc.onExit(exitCode => {
this.client.log.debug( this.client.log.debug(
{ cmd: cmd, args: args, exitCode: exitCode }, { cmd: cmd, args: args, exitCode: exitCode },