chschu / HexaFlip

A hexagonal board game for two players
1 stars 1 forks source link

UI blocked when leaving the game screen while the "thinking indicator" is being hidden #14

Closed chschu closed 10 years ago

chschu commented 10 years ago

Start an arbitrary game. Make a move. While the "thinking indicator" is being hidden, tap the "exit" button.

Expected behaviour: The player is redirected to the start screen. Actual behaviour: The screen blocks forever.

chschu commented 10 years ago

This is caused by concurring actions: The one being triggered by the imminent player change, the other being triggered by the exit button.

This can be solved by leaving the indicator alone when the game screen is disabled. It must instead be removed when the game screen is prepared for a new game.