fixes PollEvent() hung after Fini() on windows

This commit is contained in:
bobo liu 2021-03-31 15:04:05 +08:00 committed by Garrett D'Amore
parent f4d402906f
commit e37d20eeec
1 changed files with 1 additions and 1 deletions

View File

@ -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