Skip to content
This repository has been archived by the owner on Mar 5, 2021. It is now read-only.

Commit

Permalink
Remove FIXME and add proper explanation for draining stdout
Browse files Browse the repository at this point in the history
  • Loading branch information
elisee committed Oct 1, 2016
1 parent 15a7417 commit 5e61232
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/renderer/updateManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,8 @@ function updateCore(callback: (error: Error) => void) {

const process = forkServerProcess([ "update", "core", "--force", `--download-url=${registry.core.downloadURL}` ]);

// FIXME: The update on the core fails somehow if we remove this line
process.stdout.on("data", (data: any) => { /* NOTHING */ });
// We need to drain stdout otherwise the process gets stuck
process.stdout.on("data", (data: any) => { /* Ignore */ });

process.on("message", (event: any) => {
if (event.type === "error") {
Expand Down

0 comments on commit 5e61232

Please sign in to comment.