Skip to content

Commit

Permalink
always close chan on errnotifier close
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: rht <[email protected]>
  • Loading branch information
rht committed Dec 18, 2015
1 parent 9f787f9 commit 5e981de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/corehttp/logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ func (w *writeErrNotifier) Write(b []byte) (int, error) {
func (w *writeErrNotifier) Close() error {
select {
case w.errs <- io.EOF:
close(w.errs)
default:
}
close(w.errs)
return nil
}

Expand Down

0 comments on commit 5e981de

Please sign in to comment.