Skip to content

Commit

Permalink
Update client.go (valyala#979)
Browse files Browse the repository at this point in the history
  • Loading branch information
moredure authored Feb 24, 2021
1 parent 62dfc52 commit e7294d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -544,10 +544,10 @@ func (c *Client) mCleaner(m map[string]*HostClient) {
v.connsLock.Unlock()

if shouldRemove {
delete(c.m, k)
delete(m, k)
}
}
if len(c.m) == 0 {
if len(m) == 0 {
mustStop = true
}
c.mLock.Unlock()
Expand Down

0 comments on commit e7294d2

Please sign in to comment.