1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-22 10:08:15 -05:00

Release element ealier

This commit is contained in:
V2Ray 2015-10-10 20:52:23 +02:00
parent a77f62428a
commit d83ddb4fa7

View File

@ -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
}