Skip to content

Commit

Permalink
fix: Fix timeout on courier displaying two error messages, one for un…
Browse files Browse the repository at this point in the history
…expected end
  • Loading branch information
driskell committed Jul 30, 2024
1 parent 9bd2550 commit e453486
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lc-lib/publisher/endpoint/sink_process.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func (s *Sink) ProcessEvent(event transports.Event) (endpoint *Endpoint, err err
case *transports.PongEvent:
endpoint.processPong(s.OnPong)
case *transports.EndEvent:
if endpoint.status != endpointStatusClosed {
if endpoint.status != endpointStatusFailed && endpoint.status != endpointStatusClosed {
err = fmt.Errorf("unexpected end of connection")
}
default:
Expand Down

0 comments on commit e453486

Please sign in to comment.