Skip to content

Commit

Permalink
close dead seed too
Browse files Browse the repository at this point in the history
  • Loading branch information
k-wall committed Apr 1, 2022
1 parent f41a8d4 commit bd55d16
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,10 @@ func (client *client) RefreshBrokers(addrs []string) error {
_ = broker.Close()
}

for _, broker := range client.deadSeeds {
_ = broker.Close()
}

client.seedBrokers = nil
client.deadSeeds = nil

Expand Down

0 comments on commit bd55d16

Please sign in to comment.