Skip to content

Commit

Permalink
fix: Set client status to Closed, when backoff exceeds
Browse files Browse the repository at this point in the history
  • Loading branch information
freeman committed Oct 25, 2023
1 parent 747ba55 commit 0480e2d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ func (c *client) Start() {
nextBackoff := boff.NextBackOff()
// Check for exceeded backoff
if nextBackoff == backoff.Stop {
c.setState(ClientClosed)
c.setErr(errors.New("backoff exceeded"))
return
}
Expand Down

0 comments on commit 0480e2d

Please sign in to comment.