Skip to content

Commit

Permalink
prevent panic in logWriter
Browse files Browse the repository at this point in the history
  • Loading branch information
djelusic committed Jul 30, 2021
1 parent f849291 commit 03fd408
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions internal/stream/stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,7 @@ func newLogWriter() *logWriter {
}

func (w *logWriter) Write(p []byte) (n int, err error) {
go func() {
w.ch <- string(p)
}()
w.ch <- string(p)
return w.defaultWriter.Write(p)
}

Expand Down

0 comments on commit 03fd408

Please sign in to comment.