diff --git a/internal/ui/ui_glfw.go b/internal/ui/ui_glfw.go index 26de35f3a..857d0a838 100644 --- a/internal/ui/ui_glfw.go +++ b/internal/ui/ui_glfw.go @@ -159,6 +159,9 @@ func (u *userInterface) doEvents() error { if err := u.pollEvents(); err != nil { return err } + if u.isClosed() { + return nil + } } return nil }