mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 17:05:55 +08:00
minor change avoiding a null reference
This commit is contained in:
@@ -2966,10 +2966,12 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
try
|
||||
{
|
||||
ScenePresence sp = GetScenePresence(agentID);
|
||||
PresenceService.LogoutAgent(sp.ControllingClient.SessionId);
|
||||
|
||||
|
||||
if (sp != null)
|
||||
{
|
||||
PresenceService.LogoutAgent(sp.ControllingClient.SessionId);
|
||||
sp.ControllingClient.Close();
|
||||
}
|
||||
|
||||
// BANG! SLASH!
|
||||
m_authenticateHandler.RemoveCircuit(agentID);
|
||||
|
||||
Reference in New Issue
Block a user