Fixed a slight channel leak in event.fire().

This commit is contained in:
Pietro Gagliardi 2014-07-18 22:56:30 -04:00
parent 08f5c42639
commit 47c0f573a9
1 changed files with 1 additions and 0 deletions

View File

@ -108,6 +108,7 @@ func (e *event) fire() bool {
cc := make(chan Doer) cc := make(chan Doer)
recur <- cc recur <- cc
c := <-cc c := <-cc
close(cc)
result := false result := false
finished := make(chan struct{}) finished := make(chan struct{})
go func() { go func() {