fixed AI swallowing exceptions

This commit is contained in:
BetaSteward 2011-02-13 08:22:35 -05:00
parent 9e7c79f3e7
commit 121a920c85

View file

@ -304,9 +304,11 @@ public class ComputerPlayer2 extends ComputerPlayer<ComputerPlayer2> implements
logger.fine("simulating - timed out");
task.cancel(true);
} catch (ExecutionException e) {
logger.log(Level.SEVERE, "Simulation error", e);
task.cancel(true);
} catch (InterruptedException e) {
logger.log(Level.SEVERE, "Simulation interrupted", e);
task.cancel(true);
}
}