nelsam / vidar

vidar is a highly experimental Go editor, written in Go, using gxui
The Unlicense
50 stars 7 forks source link

panic: close of closed channel #160

Closed Kvaz1r closed 5 years ago

Kvaz1r commented 5 years ago

Description

panic: close of closed channel

Steps to reproduce

I can't provide steps for reproducing, but the reason is obvious. Events channel is closing in condition also as in defer.

Stack trace

goroutine 27 [running]:
github.com/nelsam/vidar/fsw.(*poller).run(0xc04206ad50)
        E:/gopath/src/github.com/nelsam/vidar/fsw/poller.go:68 +0x112
created by github.com/nelsam/vidar/fsw.New
        E:/gopath/src/github.com/nelsam/vidar/fsw/poller.go:57 +0x13f