Skip to content

Commit

Permalink
Merge pull request #186 from frankfil/fix-example-client-channel-reco…
Browse files Browse the repository at this point in the history
…nnection

Fix Example Client not reconnecting
  • Loading branch information
Zerpet committed Apr 5, 2023
2 parents f706086 + 46c4686 commit 90ec702
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions example_client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,9 @@ func (client *Client) handleReInit(conn *amqp.Connection) bool {
select {
case <-client.done:
return true
case <-client.notifyConnClose:
client.logger.Println("Connection closed. Reconnecting...")
return false
case <-time.After(reInitDelay):
}
continue
Expand Down

0 comments on commit 90ec702

Please sign in to comment.