Skip to content

Commit

Permalink
fixes PollEvent() hung after Fini() on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
fakeboboliu authored and gdamore committed Apr 18, 2021
1 parent f4d4029 commit e37d20e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion console_win.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e37d20e

Please sign in to comment.