mirror of
https://github.com/v2fly/v2ray-core
synced 2024-02-27 03:18:06 +00:00
exit faster in cleanup thread
This commit is contained in:
@@ -90,6 +90,8 @@ func (queue *TimedQueue) cleanup(tick <-chan time.Time) {
|
||||
queue.queue.Swap(i, queue.queue.Len()-1)
|
||||
queue.queue.Pop()
|
||||
changed = true
|
||||
} else {
|
||||
break
|
||||
}
|
||||
}
|
||||
if changed {
|
||||
|
||||
Reference in New Issue
Block a user