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:
@@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user