forked from External/mage
Some changes to server logging.
This commit is contained in:
parent
049744677b
commit
30645e2ee0
4 changed files with 30 additions and 4 deletions
|
|
@ -33,6 +33,7 @@ import java.util.concurrent.ConcurrentHashMap;
|
|||
import mage.cards.decks.Deck;
|
||||
import mage.game.tournament.Tournament;
|
||||
import mage.view.TournamentView;
|
||||
import org.jboss.logging.Logger;
|
||||
|
||||
/**
|
||||
*
|
||||
|
|
@ -62,7 +63,11 @@ public class TournamentManager {
|
|||
}
|
||||
|
||||
public void quit(UUID tournamentId, UUID userId) {
|
||||
controllers.get(tournamentId).quit(userId);
|
||||
if (controllers.contains(tournamentId)) {
|
||||
controllers.get(tournamentId).quit(userId);
|
||||
} else {
|
||||
Logger.getLogger(TournamentManager.class).error("TournamentManager.quit tournament controller missing tournamentid: " + tournamentId + " userId: " + userId);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue