mirror of
https://github.com/magefree/mage.git
synced 2025-12-21 19:11:59 -08:00
* Memory leaks - removed some more memory leaks for match / game handling.
This commit is contained in:
parent
ed64a9ff49
commit
b92a2c83b9
7 changed files with 45 additions and 18 deletions
|
|
@ -76,16 +76,7 @@ public class GameWatcher {
|
|||
if (!killed) {
|
||||
User user = UserManager.getInstance().getUser(userId);
|
||||
if (user != null) {
|
||||
logger.warn("before gameUpdate");
|
||||
GameView gameView = getGameView();
|
||||
logger.warn("after View");
|
||||
UUID id = game.getId();
|
||||
logger.warn("after ID");
|
||||
ClientCallback clientCallback = new ClientCallback("gameUpdate", id, gameView);
|
||||
logger.warn("callback obj");
|
||||
user.fireCallback(clientCallback);
|
||||
// user.fireCallback(new ClientCallback("gameUpdate", game.getId(), getGameView()));
|
||||
logger.warn("after gameUpdate");
|
||||
user.fireCallback(new ClientCallback("gameUpdate", game.getId(), getGameView()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue