From c015cb3134b596386605b33232acf6f687cb71e0 Mon Sep 17 00:00:00 2001 From: Justin Clark-Casey (justincc) Date: Wed, 24 Sep 2014 00:45:19 +0100 Subject: Remove an unnecessary check at the bottom of Scene.CloseAgent() At this point sp != null so no check required. --- OpenSim/Region/Framework/Scenes/Scene.cs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'OpenSim/Region/Framework') diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index 19cb0f8..eb2d6f0 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs @@ -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; } /// -- cgit v1.1