Skip to content

Commit

Permalink
fix send on closed channel when closing eventstream
Browse files Browse the repository at this point in the history
  • Loading branch information
pk910 committed Aug 25, 2023
1 parent dd2d909 commit e09ec2d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rpc/eventstream/eventstream.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,9 @@ func (stream *Stream) retryRestartStream() {
go stream.stream(r)
return
}
if stream.isClosed {
return
}
stream.Errors <- err
backoff = 10 * time.Second
}
Expand Down

0 comments on commit e09ec2d

Please sign in to comment.