Fixed takeFromCommandQueue returning void

This commit is contained in:
Bas de Jong
2025-09-18 15:27:31 +02:00
parent 826886f617
commit 974403242f

View File

@@ -45,7 +45,7 @@ public class TicTacToe extends GameBase implements Runnable {
private ParsedCommand takeFromCommandQueue() { private ParsedCommand takeFromCommandQueue() {
try { try {
ParsedCommand cmd = this.commandQueue.take(); return this.commandQueue.take();
} catch (InterruptedException e) { } catch (InterruptedException e) {
logger.error("Taking from queue interrupted, in game with id: {}", this.gameId); logger.error("Taking from queue interrupted, in game with id: {}", this.gameId);
} }