mirror of
https://github.com/correl/mage.git
synced 2025-04-10 01:01:05 -09: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");
|
logger.fine("simulating - timed out");
|
||||||
task.cancel(true);
|
task.cancel(true);
|
||||||
} catch (ExecutionException e) {
|
} catch (ExecutionException e) {
|
||||||
|
logger.log(Level.SEVERE, "Simulation error", e);
|
||||||
|
task.cancel(true);
|
||||||
} catch (InterruptedException e) {
|
} catch (InterruptedException e) {
|
||||||
|
logger.log(Level.SEVERE, "Simulation interrupted", e);
|
||||||
|
task.cancel(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue