* Some rework of User/Tournament/Quit handling.

This commit is contained in:
LevelX2 2014-12-20 17:54:02 +01:00
parent 9ea54b38c2
commit 0ef340d108
10 changed files with 130 additions and 113 deletions

View file

@ -442,9 +442,9 @@ public class GameController implements GameCallback {
UUID playerId = getPlayerId(userId);
if (playerId != null) {
if (allJoined()) {
GameSessionPlayer gameSession = gameSessions.get(playerId);
if (gameSession != null) {
gameSession.quitGame();
GameSessionPlayer gameSessionPlayer = gameSessions.get(playerId);
if (gameSessionPlayer != null) {
gameSessionPlayer.quitGame();
}
} else {
// The player did never join the game but the game controller was started because the player was still connected as the