From e37d20eeec284b80e88d62882f090d1f120ef42d Mon Sep 17 00:00:00 2001 From: bobo liu Date: Wed, 31 Mar 2021 15:04:05 +0800 Subject: [PATCH] fixes PollEvent() hung after Fini() on windows --- console_win.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/console_win.go b/console_win.go index ce218531..1cd994ac 100644 --- a/console_win.go +++ b/console_win.go @@ -370,7 +370,7 @@ func (s *cScreen) PostEvent(ev Event) error { func (s *cScreen) PollEvent() Event { select { - case <-s.quit: + case <-s.stopQ: return nil case ev := <-s.evch: return ev