Skip to content

Commit

Permalink
clientconn: release lock when returning from enterIdleMode() (#6538)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zamony authored Aug 14, 2023
1 parent dbbc983 commit e40da66
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions clientconn.go
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,7 @@ func (cc *ClientConn) enterIdleMode() error {
}
if cc.idlenessState != ccIdlenessStateActive {
channelz.Errorf(logger, cc.channelzID, "ClientConn asked to enter idle mode, current mode is %v", cc.idlenessState)
cc.mu.Unlock()
return nil
}

Expand Down

0 comments on commit e40da66

Please sign in to comment.