From d83ddb4fa7e49ec2f26bf207cd21ae47f167d391 Mon Sep 17 00:00:00 2001 From: V2Ray Date: Sat, 10 Oct 2015 20:52:23 +0200 Subject: [PATCH] Release element ealier --- common/collect/timed_queue.go | 1 + 1 file changed, 1 insertion(+) diff --git a/common/collect/timed_queue.go b/common/collect/timed_queue.go index 2943e7c5..1595723d 100644 --- a/common/collect/timed_queue.go +++ b/common/collect/timed_queue.go @@ -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 }