diff --git a/core/archive_util.js b/core/archive_util.js index 9fad1004..5f1eff31 100644 --- a/core/archive_util.js +++ b/core/archive_util.js @@ -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}`) diff --git a/core/file_transfer.js b/core/file_transfer.js index 37ff882c..264bb97d 100644 --- a/core/file_transfer.js +++ b/core/file_transfer.js @@ -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 },