mirror of
https://github.com/Hopiu/micro.git
synced 2026-03-18 23:10:33 +00:00
parent
030a05c103
commit
63b4848bb0
1 changed files with 3 additions and 1 deletions
|
|
@ -408,7 +408,9 @@ func main() {
|
|||
// Here is the event loop which runs in a separate thread
|
||||
go func() {
|
||||
for {
|
||||
events <- screen.PollEvent()
|
||||
if screen != nil {
|
||||
events <- screen.PollEvent()
|
||||
}
|
||||
}
|
||||
}()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue