Don't start up the connection manager until the dobject manager has
processed everything put into its queue during the initialization process. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1767 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: PresentsServer.java,v 1.24 2002/08/14 19:07:56 mdb Exp $
|
// $Id: PresentsServer.java,v 1.25 2002/10/01 05:15:45 mdb Exp $
|
||||||
|
|
||||||
package com.threerings.presents.server;
|
package com.threerings.presents.server;
|
||||||
|
|
||||||
@@ -124,8 +124,14 @@ public class PresentsServer
|
|||||||
*/
|
*/
|
||||||
public void run ()
|
public void run ()
|
||||||
{
|
{
|
||||||
// start up the connection manager
|
// post a unit that will start up the connection manager when
|
||||||
conmgr.start();
|
// everything else in the dobjmgr queue is processed
|
||||||
|
omgr.postUnit(new Runnable() {
|
||||||
|
public void run () {
|
||||||
|
// start up the connection manager
|
||||||
|
conmgr.start();
|
||||||
|
}
|
||||||
|
});
|
||||||
// invoke the dobjmgr event loop
|
// invoke the dobjmgr event loop
|
||||||
omgr.run();
|
omgr.run();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user