mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-22 01:57:12 -05:00
Release element ealier
This commit is contained in:
parent
a77f62428a
commit
d83ddb4fa7
@ -36,6 +36,7 @@ func (queue *timedQueueImpl) Pop() interface{} {
|
||||
old := *queue
|
||||
n := len(old)
|
||||
v := old[n-1]
|
||||
old[n-1] = nil
|
||||
*queue = old[:n-1]
|
||||
return v
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user