Skip to content

Commit

Permalink
Merge pull request #1015 from GeorgeEngland/main
Browse files Browse the repository at this point in the history
flusher errors now do not fail silently
  • Loading branch information
kozlovic authored Jul 14, 2022
2 parents 2d22c44 + 68c4344 commit f4a86f3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nats.go
Original file line number Diff line number Diff line change
Expand Up @@ -3095,6 +3095,9 @@ func (nc *Conn) flusher() {
if nc.err == nil {
nc.err = err
}
if nc.Opts.AsyncErrorCB != nil {
nc.ach.push(func() { nc.Opts.AsyncErrorCB(nc, nil, err) })
}
}
}
nc.mu.Unlock()
Expand Down

0 comments on commit f4a86f3

Please sign in to comment.