Initialize _clobj member directly; pass proper subscriber to
createObject(). git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@69 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: PresentsClient.java,v 1.5 2001/07/19 07:09:16 mdb Exp $
|
||||
// $Id: PresentsClient.java,v 1.6 2001/07/19 07:17:46 mdb Exp $
|
||||
|
||||
package com.threerings.cocktail.cher.server;
|
||||
|
||||
@@ -44,7 +44,7 @@ public class Client implements Subscriber, MessageHandler
|
||||
{
|
||||
public void objectAvailable (DObject object)
|
||||
{
|
||||
setClientObject((ClientObject)object);
|
||||
_clobj = (ClientObject)object;
|
||||
sendBootstrap();
|
||||
}
|
||||
|
||||
@@ -60,7 +60,7 @@ public class Client implements Subscriber, MessageHandler
|
||||
return false;
|
||||
}
|
||||
};
|
||||
CherServer.omgr.createObject(ClientObject.class, this, false);
|
||||
CherServer.omgr.createObject(ClientObject.class, sub, false);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -100,12 +100,6 @@ public class Client implements Subscriber, MessageHandler
|
||||
Log.info("Session resumed [client=" + this + "].");
|
||||
}
|
||||
|
||||
protected void setClientObject (ClientObject clobj)
|
||||
{
|
||||
// keep track of this for later
|
||||
_clobj = clobj;
|
||||
}
|
||||
|
||||
/**
|
||||
* This is called once we have a handle on the client distributed
|
||||
* object. It sends a bootstrap notification to the client with all
|
||||
|
||||
Reference in New Issue
Block a user