gui: fixed possible game error with player timer on client side

This commit is contained in:
Oleg Agafonov 2023-11-28 21:47:48 +04:00
parent 30269243bb
commit 01dd8c33ba
3 changed files with 21 additions and 11 deletions

View file

@ -267,6 +267,7 @@ public class GameController implements GameCallback {
long delayMs = 250L; // run each 250 ms
Action executeOnNoTimeLeft = () -> {
// TODO: buggy, must run in game thread, not in timer thread
game.timerTimeout(initPlayerId);
logger.debug("Player has no time left to end the match: " + initPlayerId + ". Conceding.");
};