clientconn: release lock when returning from enterIdleMode() (#6538)

This commit is contained in:
Nikita Mochalov 2023-08-14 18:28:24 +03:00 committed by GitHub
parent dbbc983c26
commit e40da6613d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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
}