mirror of https://github.com/v2ray/v2ray-core
exit faster in cleanup thread
parent
add1197cc9
commit
4773a8f4ae
|
@ -90,6 +90,8 @@ func (queue *TimedQueue) cleanup(tick <-chan time.Time) {
|
||||||
queue.queue.Swap(i, queue.queue.Len()-1)
|
queue.queue.Swap(i, queue.queue.Len()-1)
|
||||||
queue.queue.Pop()
|
queue.queue.Pop()
|
||||||
changed = true
|
changed = true
|
||||||
|
} else {
|
||||||
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if changed {
|
if changed {
|
||||||
|
|
Loading…
Reference in New Issue