Release element ealier

pull/40/head
V2Ray 2015-10-10 20:52:23 +02:00
parent a77f62428a
commit d83ddb4fa7
1 changed files with 1 additions and 0 deletions

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
}