Wait to Poll

This commit is contained in:
cuu 2021-10-11 13:59:17 +08:00
parent 7382cc40b1
commit 39408ba536

View File

@ -343,7 +343,7 @@ func run() int {
running := true running := true
for running { for running {
ev := event.Wait() ev := event.Poll()
if ev.Type == event.QUIT { if ev.Type == event.QUIT {
running = false running = false
break break