mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 08:55:56 +08:00
Remove an unnecessary check at the bottom of Scene.CloseAgent()
At this point sp != null so no check required.
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user