Skip to content

Commit

Permalink
remove one for add a new if
Browse files Browse the repository at this point in the history
  • Loading branch information
kvch committed Sep 28, 2018
1 parent 88e4a1f commit 88f039f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions journalbeat/input/input.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,10 @@ func (i *Input) publishAll(client beat.Client) {
select {
case <-i.done:
return
default:
}
for v := range c {
case v, ok := <-c:
if !ok {
return
}
out <- v
}
}
Expand Down

0 comments on commit 88f039f

Please sign in to comment.