diff options
Diffstat (limited to 'redo/uitask.go')
| -rw-r--r-- | redo/uitask.go | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/redo/uitask.go b/redo/uitask.go index 3580278..3193f4e 100644 --- a/redo/uitask.go +++ b/redo/uitask.go @@ -146,8 +146,6 @@ func NewForeignEvent(channel interface{}, handler func(data interface{})) *Forei } func (fe *ForeignEvent) do() { - wait := make(chan struct{}) - defer close(wait) for { v, ok := fe.c.Recv() if !ok { @@ -156,9 +154,7 @@ func (fe *ForeignEvent) do() { fe.d = v.Interface() Do(func() { fe.e.fire() - wait <- struct{}{} }) - <-wait } } |
