diff --git a/lib/shared/child-writer/writer-proxy.js b/lib/shared/child-writer/writer-proxy.js index d9e86ffbd9..ee19163875 100644 --- a/lib/shared/child-writer/writer-proxy.js +++ b/lib/shared/child-writer/writer-proxy.js @@ -175,9 +175,9 @@ return isElevated().then((elevated) => { // causing several progress lines to come up at once as single message. // Trying to parse multiple JSON objects separated by new lines will // of course make the parser confused, causing errors later on. - // As a solution, we only consider the last message. - const object = _.last(utils.splitObjectLines(data.toString())); - ipc.of[process.env.IPC_SERVER_ID].emit('message', object); + _.each(utils.splitObjectLines(data.toString()), (object) => { + ipc.of[process.env.IPC_SERVER_ID].emit('message', object); + }); };