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 {
|
func (s *cScreen) PollEvent() Event {
|
||||||
select {
|
select {
|
||||||
case <-s.quit:
|
case <-s.stopQ:
|
||||||
return nil
|
return nil
|
||||||
case ev := <-s.evch:
|
case ev := <-s.evch:
|
||||||
return ev
|
return ev
|
||||||
|
|
Loading…
Reference in New Issue