Remove an unnecessary check at the bottom of Scene.CloseAgent()

At this point sp != null so no check required.
ghosts
Justin Clark-Casey (justincc) 2014-09-24 00:45:19 +01:00
parent 0448935b1b
commit 6b05cfce25
1 changed files with 2 additions and 7 deletions

View File

@ -4467,14 +4467,9 @@ namespace OpenSim.Region.Framework.Scenes
sp.LifecycleState = ScenePresenceState.Removing; sp.LifecycleState = ScenePresenceState.Removing;
} }
if (sp != null) sp.ControllingClient.Close(force);
{
sp.ControllingClient.Close(force);
return true;
}
// Agent not here return true;
return false;
} }
/// <summary> /// <summary>