Skip to content

Commit

Permalink
uidriver/mobile: Bug fix: Error must be handled whenever possible
Browse files Browse the repository at this point in the history
Updates #860
  • Loading branch information
hajimehoshi committed May 31, 2019
1 parent 2dc6042 commit dbd5e25
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions internal/uidriver/mobile/ui.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit dbd5e25

Please # to comment.