From dbd5e25b89e4d42213f524f997708b0bc39af648 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sat, 1 Jun 2019 03:11:09 +0900 Subject: [PATCH] uidriver/mobile: Bug fix: Error must be handled whenever possible Updates #860 --- internal/uidriver/mobile/ui.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/internal/uidriver/mobile/ui.go b/internal/uidriver/mobile/ui.go index d89ac19c2..89286e501 100644 --- a/internal/uidriver/mobile/ui.go +++ b/internal/uidriver/mobile/ui.go @@ -67,9 +67,11 @@ func (u *UserInterface) Render(chError <-chan error) error { select { case err := <-chError: return err - case renderCh <- struct{}{}: - return opengl.Get().DoWork(renderEndCh) + default: } + + renderCh <- struct{}{} + return opengl.Get().DoWork(renderEndCh) } type UserInterface struct {