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

At this point sp != null so no check required.
mb-throttle-test
Justin Clark-Casey (justincc) 2014-09-24 00:45:19 +01:00
parent bde60cc92e
commit c015cb3134
1 changed files with 2 additions and 7 deletions

View File

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