forked from External/mage
* Fixed that PriorityTimer was not canceled. Added gaeId to Timer name.
This commit is contained in:
parent
b6c9b5bf02
commit
4e56e584b6
3 changed files with 8 additions and 21 deletions
|
|
@ -141,6 +141,9 @@ public class GameController implements GameCallback {
|
|||
gameSessionPlayer.CleanUp();
|
||||
}
|
||||
ChatManager.getInstance().destroyChatSession(chatId);
|
||||
for(PriorityTimer priorityTimer: timers.values()) {
|
||||
priorityTimer.cancel();
|
||||
}
|
||||
}
|
||||
|
||||
private void init() {
|
||||
|
|
@ -301,7 +304,7 @@ public class GameController implements GameCallback {
|
|||
|
||||
PriorityTimer timer = new PriorityTimer(count, delayMs, executeOnNoTimeLeft);
|
||||
timers.put(playerId, timer);
|
||||
timer.init();
|
||||
timer.init(game.getId());
|
||||
return timer;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue