From 103955393941f39274087321741a17a47778069a Mon Sep 17 00:00:00 2001 From: Martin Strobel Date: Wed, 21 Jun 2017 10:08:20 -0700 Subject: [PATCH] Fixing bug preventing Lists from enumerating. --- list.go | 1 + 1 file changed, 1 insertion(+) diff --git a/list.go b/list.go index e96a991..ba6f69f 100644 --- a/list.go +++ b/list.go @@ -44,6 +44,7 @@ func (l *List) Enumerate() Enumerator { go func() { l.key.RLock() defer l.key.RUnlock() + defer close(retval) for _, entry := range l.underlyer { retval <- entry