minor change avoiding a null reference
parent
879d1cefb8
commit
a4c59b1fd2
|
@ -2966,10 +2966,12 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
ScenePresence sp = GetScenePresence(agentID);
|
ScenePresence sp = GetScenePresence(agentID);
|
||||||
PresenceService.LogoutAgent(sp.ControllingClient.SessionId);
|
|
||||||
|
|
||||||
if (sp != null)
|
if (sp != null)
|
||||||
|
{
|
||||||
|
PresenceService.LogoutAgent(sp.ControllingClient.SessionId);
|
||||||
sp.ControllingClient.Close();
|
sp.ControllingClient.Close();
|
||||||
|
}
|
||||||
|
|
||||||
// BANG! SLASH!
|
// BANG! SLASH!
|
||||||
m_authenticateHandler.RemoveCircuit(agentID);
|
m_authenticateHandler.RemoveCircuit(agentID);
|
||||||
|
|
Loading…
Reference in New Issue