use once in pipeline

This commit is contained in:
Jonathan Rainville 2018-05-18 14:25:20 -04:00
parent a7be2cda26
commit b829643f61

View File

@ -80,7 +80,7 @@ class Pipeline {
webpackProcess.send({action: constants.pipeline.init, options: {}});
webpackProcess.send({action: constants.pipeline.build, file, importsList});
webpackProcess.on('result', constants.pipeline.built, (msg) => {
webpackProcess.once('result', constants.pipeline.built, (msg) => {
webpackProcess.disconnect();
return next(msg.error);
});