Skip to content

Commit

Permalink
squash: fix nit
Browse files Browse the repository at this point in the history
  • Loading branch information
Trott committed Jun 4, 2016
1 parent 10c64e9 commit 3c348f3
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions test/parallel/test-debug-brk.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,9 @@ proc.stderr.on('data', (chunk) => {

agent.stdout.on('data', (chunk) => {
agentStdout += chunk;
if (/connecting to .+ ok/.test(agentStdout)) {
if (needToExit) {
needToExit = false;
exitAll([proc, agent]);
}
if (/connecting to .+ ok/.test(agentStdout) && needToExit) {
needToExit = false;
exitAll([proc, agent]);
}
});
}
Expand Down

0 comments on commit 3c348f3

Please sign in to comment.