From 430e993a681c67982d0a6f69ba12b1ec99bdc2f9 Mon Sep 17 00:00:00 2001 From: geek Date: Thu, 27 Apr 2017 15:35:35 +0900 Subject: [PATCH] close --- queue.go | 1 + 1 file changed, 1 insertion(+) diff --git a/queue.go b/queue.go index 429d776..7425f43 100644 --- a/queue.go +++ b/queue.go @@ -89,6 +89,7 @@ func (lq *LoafleQueue) Close() { if lq.eventChanel != nil { observer.Remove(lq.queueType, lq.eventChanel) } + lq.items = nil } func NewQueue(eventType string, interval time.Duration, senderChanel chan interface{}) *LoafleQueue { items := make([]*Item, 0)