Skip to content

Commit

Permalink
Better comment on as per @bestander request
Browse files Browse the repository at this point in the history
  • Loading branch information
kentaromiura committed Dec 1, 2016
1 parent 618e2a4 commit f398085
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cli/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,8 @@ const runEventuallyWithNetwork = (mutexPort: ?string): Promise<void> => {

socket
.on('connect', () => {
socket.unref(); // let it die
// Allow the program to exit if this is the only active server in the event system.
socket.unref();
})
.on('close', (hadError?: boolean) => {
// the `close` event gets always called after the `error` event
Expand Down

0 comments on commit f398085

Please sign in to comment.