change names

merge-requests/4/head
Bsian 2020-05-12 16:46:19 +01:00
parent 0ba05afa66
commit d098ac1832
No known key found for this signature in database
GPG Key ID: 097FB9A291026091
1 changed files with 3 additions and 3 deletions

View File

@ -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);
});