Additional API changes
This commit is contained in:
parent
577992bbe5
commit
498c4a6082
|
@ -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}`)
|
||||||
|
|
|
@ -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 },
|
||||||
|
|
Loading…
Reference in New Issue