mirror of
https://github.com/correl/mage.git
synced 2025-01-11 19:13:02 +00:00
Merge pull request #3370 from magefree/feature/fix_new_perspectives_freeze
magenoxx branch - Feature/fix new perspectives freeze
This commit is contained in:
commit
a045196572
4 changed files with 8 additions and 4 deletions
|
@ -61,7 +61,7 @@
|
|||
</repositories>
|
||||
|
||||
<build>
|
||||
<sourceDirectory>src</sourceDirectory>
|
||||
<sourceDirectory>src/main/java</sourceDirectory>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
|
|
|
@ -244,6 +244,7 @@ public class HumanPlayer extends PlayerImpl {
|
|||
|
||||
while (!abort) {
|
||||
game.fireChooseChoiceEvent(playerId, replacementEffectChoice);
|
||||
updateGameStatePriority("chooseEffect", game);
|
||||
waitForResponse(game);
|
||||
logger.debug("Choose effect: " + response.getString());
|
||||
if (response.getString() != null) {
|
||||
|
|
|
@ -961,7 +961,7 @@ public class GameController implements GameCallback {
|
|||
}
|
||||
}
|
||||
|
||||
private synchronized void setupTimeout(final UUID playerId) {
|
||||
private void setupTimeout(final UUID playerId) {
|
||||
if (!useTimeout) {
|
||||
return;
|
||||
}
|
||||
|
@ -973,9 +973,12 @@ public class GameController implements GameCallback {
|
|||
);
|
||||
}
|
||||
|
||||
private synchronized void cancelTimeout() {
|
||||
private void cancelTimeout() {
|
||||
logger.debug("cancelTimeout");
|
||||
if (futureTimeout != null) {
|
||||
futureTimeout.cancel(false);
|
||||
synchronized (futureTimeout) {
|
||||
futureTimeout.cancel(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue