mirror of
https://github.com/peco/peco.git
synced 2026-09-10 07:16:29 -04:00
move the close outside
This commit is contained in:
parent
cfc3736e8e
commit
2f0d21d047
|
|
@ -277,8 +277,8 @@ func (t *TcellScreen) PollEvent(ctx context.Context, cfg *Config) chan Event {
|
|||
if r := recover(); r != nil {
|
||||
fmt.Fprintf(t.errWriter, "peco: panic in PollEvent goroutine: %v\n%s", r, debug.Stack())
|
||||
}
|
||||
close(evCh)
|
||||
}()
|
||||
defer func() { close(evCh) }()
|
||||
|
||||
for {
|
||||
t.mutex.Lock()
|
||||
|
|
|
|||
Loading…
Reference in a new issue