Skip to content

Commit e40da66

Browse files
authored
clientconn: release lock when returning from enterIdleMode() (#6538)
1 parent dbbc983 commit e40da66

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clientconn.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,7 @@ func (cc *ClientConn) enterIdleMode() error {
399399
}
400400
if cc.idlenessState != ccIdlenessStateActive {
401401
channelz.Errorf(logger, cc.channelzID, "ClientConn asked to enter idle mode, current mode is %v", cc.idlenessState)
402+
cc.mu.Unlock()
402403
return nil
403404
}
404405

0 commit comments

Comments
 (0)