mirror of
https://github.com/Hopiu/micro.git
synced 2026-05-12 00:33:09 +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
|
// Here is the event loop which runs in a separate thread
|
||||||
go func() {
|
go func() {
|
||||||
for {
|
for {
|
||||||
events <- screen.PollEvent()
|
if screen != nil {
|
||||||
|
events <- screen.PollEvent()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue