From 498c4a608238b95b1ef074e8335bdc6805e3cf70 Mon Sep 17 00:00:00 2001 From: Nathan Byrd Date: Tue, 10 Oct 2023 19:43:58 +0000 Subject: [PATCH] Additional API changes --- core/archive_util.js | 2 +- core/file_transfer.js | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) 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 },