mirror of
https://github.com/2OOP/pism.git
synced 2026-02-04 10:54:51 +00:00
Fixed takeFromCommandQueue returning void
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user