Don't start the game while we're still initializing the manager. Let the
manager finish the startup process and then call startGame(). git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@448 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
@@ -537,9 +537,14 @@ public class EZGameManager extends GameManager
|
|||||||
_ezObj.setEzGameService(
|
_ezObj.setEzGameService(
|
||||||
(EZGameMarshaller) CrowdServer.invmgr.registerDispatcher(new EZGameDispatcher(this)));
|
(EZGameMarshaller) CrowdServer.invmgr.registerDispatcher(new EZGameDispatcher(this)));
|
||||||
|
|
||||||
// if we don't need the no-show timer, start.
|
// if we don't need the no-show timer, start right away (but allow the manager startup
|
||||||
|
// process to finish before doing so)
|
||||||
if (!needsNoShowTimer()) {
|
if (!needsNoShowTimer()) {
|
||||||
startGame();
|
CrowdServer.omgr.postRunnable(new Runnable() {
|
||||||
|
public void run () {
|
||||||
|
startGame();
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user