diff --git a/src/java/com/threerings/presents/client/Client.java b/src/java/com/threerings/presents/client/Client.java index d3617defa..77e8b4306 100644 --- a/src/java/com/threerings/presents/client/Client.java +++ b/src/java/com/threerings/presents/client/Client.java @@ -1,5 +1,5 @@ // -// $Id: Client.java,v 1.14 2001/10/02 02:05:50 mdb Exp $ +// $Id: Client.java,v 1.15 2001/10/03 03:42:31 mdb Exp $ package com.threerings.cocktail.cher.client; @@ -277,8 +277,8 @@ public class Client // extract bootstrap information _cloid = data.clientOid; - // create our invocation director - _invdir = new InvocationDirector(this, data.invOid); + // initialize our invocation director + _invdir.init(this, data.invOid); // we can't quite call initialization completed at this point // because we need for the invocation director to fully initialize @@ -309,7 +309,7 @@ public class Client protected Communicator _comm; protected int _cloid; - protected InvocationDirector _invdir; + protected InvocationDirector _invdir = new InvocationDirector(); // client observer codes static final int CLIENT_DID_LOGON = 0; diff --git a/src/java/com/threerings/presents/client/InvocationDirector.java b/src/java/com/threerings/presents/client/InvocationDirector.java index 8bbc05525..c564af5b1 100644 --- a/src/java/com/threerings/presents/client/InvocationDirector.java +++ b/src/java/com/threerings/presents/client/InvocationDirector.java @@ -1,5 +1,5 @@ // -// $Id: InvocationDirector.java,v 1.10 2001/10/02 02:05:50 mdb Exp $ +// $Id: InvocationDirector.java,v 1.11 2001/10/03 03:42:31 mdb Exp $ package com.threerings.cocktail.cher.client; @@ -38,13 +38,13 @@ public class InvocationDirector implements Subscriber { /** - * Constructs a new invocation director with the specified invocation + * Initializes the invocation director with the specified invocation * manager oid. It will obtain its distributed object manager and * client object references from the supplied client instance. The * invocation manager oid is the oid of the object on the server to * which to deliver invocation requests. */ - public InvocationDirector (Client client, int imoid) + public void init (Client client, int imoid) { _client = client; _omgr = client.getDObjectManager();