Skip to content

Commit

Permalink
server: now idle response timeout will be disabled in local games wit…
Browse files Browse the repository at this point in the history
…h 1 human player
  • Loading branch information
JayDi85 committed Sep 21, 2024
1 parent 291a28d commit 7d1ab71
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public GameController(ManagerFactory managerFactory, Game game, ConcurrentMap<UU
this.tableId = tableId;
this.choosingPlayerId = choosingPlayerId;
this.gameOptions = gameOptions;
this.useResponseIdleTimeout = game.getPlayers().values().stream().anyMatch(Player::isHuman);
this.useResponseIdleTimeout = game.getPlayers().values().stream().filter(Player::isHuman).count() > 1;
init();
}

Expand Down

0 comments on commit 7d1ab71

Please sign in to comment.