From a70048dfde83ceef80173a270ea5945b342222af Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Wed, 10 Oct 2007 03:32:03 +0000 Subject: [PATCH] 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 --- src/java/com/threerings/ezgame/server/EZGameManager.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/java/com/threerings/ezgame/server/EZGameManager.java b/src/java/com/threerings/ezgame/server/EZGameManager.java index 752596cc..c51013a8 100644 --- a/src/java/com/threerings/ezgame/server/EZGameManager.java +++ b/src/java/com/threerings/ezgame/server/EZGameManager.java @@ -537,9 +537,14 @@ public class EZGameManager extends GameManager _ezObj.setEzGameService( (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()) { - startGame(); + CrowdServer.omgr.postRunnable(new Runnable() { + public void run () { + startGame(); + } + }); } }