Resolve execCompose future on exit instead of close

This commit is contained in:
Jannis Pohlmann 2019-04-30 18:45:42 +02:00
parent 3a8b74665d
commit 1a85ccacf4

View file

@ -81,10 +81,7 @@ const execCompose = (command, args, options) => new Promise((resolve, reject) =>
}); });
childProc.on('exit', exitCode => { childProc.on('exit', exitCode => {
result.exitCode = exitCode result.exitCode = exitCode;
})
childProc.on('close', () => {
resolve(result); resolve(result);
}); });