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