ui: Bug fix: Quit soon after the window is closed (#185)

This commit is contained in:
Hajime Hoshi 2016-03-15 00:31:46 +09:00
parent 1bb8a8b4bf
commit 8f15978c83

View File

@ -159,6 +159,9 @@ func (u *userInterface) doEvents() error {
if err := u.pollEvents(); err != nil { if err := u.pollEvents(); err != nil {
return err return err
} }
if u.isClosed() {
return nil
}
} }
return nil return nil
} }