mirror of https://github.com/grpc/grpc-go.git
clientconn: release lock when returning from enterIdleMode() (#6538)
This commit is contained in:
parent
dbbc983c26
commit
e40da6613d
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue