Fixed a slight channel leak in event.fire().
This commit is contained in:
parent
08f5c42639
commit
47c0f573a9
|
@ -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() {
|
||||||
|
|
Loading…
Reference in New Issue