forked from External/mage
fixed some timing errors
This commit is contained in:
parent
875614b96c
commit
93120eedea
3 changed files with 13 additions and 5 deletions
|
|
@ -56,12 +56,15 @@ public class GameWatcher {
|
|||
this.gameId = gameId;
|
||||
}
|
||||
|
||||
public void init(final GameView gameView) {
|
||||
public boolean init(final GameView gameView) {
|
||||
if (!killed) {
|
||||
Session session = SessionManager.getInstance().getSession(sessionId);
|
||||
if (session != null)
|
||||
if (session != null) {
|
||||
session.fireCallback(new ClientCallback("gameInit", gameView));
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public void update(final GameView gameView) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue