Some minor changes to debug logging messages and server user handling.

This commit is contained in:
LevelX2 2014-04-24 08:26:37 +02:00
parent 64e0b4d1b9
commit 90b3e75435
5 changed files with 25 additions and 11 deletions

View file

@ -207,7 +207,8 @@ public class TableManager {
}
public void leaveTable(UUID userId, UUID tableId) {
if (controllers.containsKey(tableId)) {
TableController tableController = controllers.get(tableId);
if (tableController != null) {
// table not started yet and user is the owner, remove the table
Table table = getTable(tableId);
if (table != null
@ -217,7 +218,7 @@ public class TableManager {
removeTable(tableId);
} else {
controllers.get(tableId).leaveTable(userId);
tableController.leaveTable(userId);
}
}
}