mirror of
https://github.com/correl/mage.git
synced 2024-11-15 03:00:16 +00:00
fixed AI swallowing exceptions
This commit is contained in:
parent
9e7c79f3e7
commit
121a920c85
1 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue