From d098ac1832269717a6ddc881fe69a7f94ab59dbf Mon Sep 17 00:00:00 2001 From: Bsian Date: Tue, 12 May 2020 16:46:19 +0100 Subject: [PATCH] change names --- src/class/Util.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/class/Util.ts b/src/class/Util.ts index ea7e228..25819f2 100644 --- a/src/class/Util.ts +++ b/src/class/Util.ts @@ -46,9 +46,9 @@ export default class Util { cmd.stderr.on('data', writeFunction); cmd.on('error', writeFunction); cmd.once('close', (code, signal) => { - cmd.stdout.removeListener('data', writeFunction); - cmd.stderr.removeListener('data', writeFunction); - cmd.removeListener('error', writeFunction); + cmd.stdout.off('data', writeFunction); + cmd.stderr.off('data', writeFunction); + cmd.off('error', writeFunction); if (error) rej(new Error(output)); res(output); });