Skip to content

Commit cff4d46

Browse files
committed
unlock before return
1 parent cf37413 commit cff4d46

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

expirable/expirable_lru.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,7 @@ func (c *LRU[K, V]) deleteExpired() {
316316
select {
317317
case <-done:
318318
// Done channel closed while sleeping, return without deleting entries
319+
c.mu.Unlock()
319320
return
320321
default:
321322
}

0 commit comments

Comments
 (0)