uidriver/mobile: Bug fix: Error must be handled whenever possible

Updates #860
This commit is contained in:
Hajime Hoshi 2019-06-01 03:11:09 +09:00
parent 2dc6042858
commit dbd5e25b89

View File

@ -67,9 +67,11 @@ func (u *UserInterface) Render(chError <-chan error) error {
select { select {
case err := <-chError: case err := <-chError:
return err return err
case renderCh <- struct{}{}: default:
return opengl.Get().DoWork(renderEndCh)
} }
renderCh <- struct{}{}
return opengl.Get().DoWork(renderEndCh)
} }
type UserInterface struct { type UserInterface struct {