Handle the client connecting and disconnecting before client object resolution
completed, or connecting, disconnecting and reconnceting before client object resolution completes a little more gracefully. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4889 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -24,7 +24,6 @@ package com.threerings.crowd.server;
|
||||
import com.threerings.presents.dobj.AccessController;
|
||||
import com.threerings.presents.server.PresentsClient;
|
||||
|
||||
import com.threerings.crowd.Log;
|
||||
import com.threerings.crowd.chat.server.SpeakUtil;
|
||||
import com.threerings.crowd.data.BodyObject;
|
||||
import com.threerings.crowd.data.OccupantInfo;
|
||||
@@ -52,14 +51,9 @@ public class CrowdClient extends PresentsClient
|
||||
{
|
||||
super.sessionWillResume();
|
||||
|
||||
if (_clobj != null) {
|
||||
// note that the user's active once more
|
||||
BodyObject bobj = (BodyObject)_clobj;
|
||||
BodyProvider.updateOccupantStatus(bobj, bobj.location, OccupantInfo.ACTIVE);
|
||||
|
||||
} else {
|
||||
Log.warning("Session resumed but we have no client object!? [client=" + this + "].");
|
||||
}
|
||||
// note that the user's active once more
|
||||
BodyObject bobj = (BodyObject)_clobj;
|
||||
BodyProvider.updateOccupantStatus(bobj, bobj.location, OccupantInfo.ACTIVE);
|
||||
}
|
||||
|
||||
// documentation inherited
|
||||
|
||||
Reference in New Issue
Block a user