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