Reference the client immediately rather than on the dobjmgr thread so it doesn't get released before we tell the listener it's resolved.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4842 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Charlie Groves
2007-10-10 02:01:48 +00:00
parent 8cfe92aba6
commit 45034b895e
@@ -238,9 +238,9 @@ public class ClientManager
if (clobj != null) {
// report that the client is resolved on the dobjmgr thread to provide equivalent
// behavior to the case where we actually have to do the resolution
clobj.reference();
PresentsServer.omgr.postRunnable(new Runnable() {
public void run () {
clobj.reference();
listener.clientResolved(username, clobj);
}
});