Skip to content

Commit

Permalink
Additional API changes
Browse files Browse the repository at this point in the history
  • Loading branch information
cognitivegears committed Oct 10, 2023
1 parent 577992b commit 498c4a6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion core/archive_util.js
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ module.exports = class ArchiveUtil {
output += data;
});

proc.once('exit', exitCode => {
proc.onExit(exitCode => {
if (exitCode) {
return cb(
Errors.ExternalProcess(`List failed with exit code: ${exitCode}`)
Expand Down
4 changes: 0 additions & 4 deletions core/file_transfer.js
Original file line number Diff line number Diff line change
Expand Up @@ -485,10 +485,6 @@ exports.getModule = class TransferFileModule extends MenuModule {
}
});

externalProc.once('close', () => {
return this.restorePipeAfterExternalProc();
});

externalProc.onExit(exitCode => {
this.client.log.debug(
{ cmd: cmd, args: args, exitCode: exitCode },
Expand Down

0 comments on commit 498c4a6

Please sign in to comment.