mirror of https://github.com/gdamore/tcell.git
fixes PollEvent() hung after Fini() on windows
This commit is contained in:
parent
f4d402906f
commit
e37d20eeec
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue