* Fixed a bug that tournament player was not removed correctly, if he left thetournament start panel. Changes to logging.

This commit is contained in:
LevelX2 2013-10-21 00:38:59 +02:00
parent 5f85d52837
commit 5a2b445e43
2 changed files with 12 additions and 6 deletions

View file

@ -193,7 +193,7 @@ public class TableManager {
public void leaveTable(UUID userId, UUID tableId) {
if (controllers.containsKey(tableId)) {
controllers.get(tableId).leaveTable(userId);
// table not started yet and user is he owner, remove the table
// table not started yet and user is the owner, remove the table
if (isTableOwner(tableId, userId)) {
if (getTable(tableId).getState().equals(TableState.WAITING)
|| getTable(tableId).getState().equals(TableState.STARTING)) {