xds/balancer/priority: Unlock mutex before returning (#7417)

This commit is contained in:
Arjan Singh Bal 2024-07-15 21:15:20 +05:30 committed by GitHub
parent d27ddb5eb5
commit 700ca74d01
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -270,6 +270,7 @@ func (b *priorityBalancer) run() {
// deadlock.
b.mu.Lock()
if b.done.HasFired() {
b.mu.Unlock()
return
}
switch s := u.(type) {