parent
5abadd72a3
commit
13c206fe05
@ -41,9 +41,10 @@ func (list *List) bg() {
|
||||
}
|
||||
if now > list.queue.peek().unix { // now.After(list.queue.peek().unix)
|
||||
n := list.queue.pop()
|
||||
exfn := list.Expired
|
||||
list.mu.Unlock()
|
||||
if list.Expired != nil {
|
||||
list.Expired(n.item)
|
||||
if exfn != nil {
|
||||
exfn(n.item)
|
||||
}
|
||||
} else {
|
||||
list.mu.Unlock()
|
||||
|
Loading…
x
Reference in New Issue
Block a user