Add exclusion condition 'two player duel' to expire checker in TableManager. That fix the bug cause the table with AI player be removed in tournament temporarily

This commit is contained in:
Li REN 2013-07-13 20:19:04 -04:00
parent 60d81ffb37
commit 71909e8310

View file

@ -319,6 +319,9 @@ public class TableManager {
if (player != null && player.isHuman()) {
canBeRemoved = false;
}
if(table.getGameType().equals("Two Player Duel")){
canBeRemoved = false;
}
}
if (canBeRemoved) {
logger.info("Table with no human player: id = " + table.getId() + ", created_by=" + table.getControllerName() + ". Removing...");