From ca228c4770660096bde98fb603e7e295808a2133 Mon Sep 17 00:00:00 2001
From: Justin Clark-Casey (justincc)
Date: Thu, 26 Apr 2012 16:20:53 +0100
Subject: Comment out old Scene.HandleLogOffUserFromGrid() to reduce client
closing analysis complexity
---
OpenSim/Region/Framework/Scenes/Scene.cs | 70 ++++++++++++++++----------------
1 file changed, 35 insertions(+), 35 deletions(-)
(limited to 'OpenSim/Region/Framework/Scenes')
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs
index a46c827..dacd9b6 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.cs
@@ -3796,41 +3796,41 @@ namespace OpenSim.Region.Framework.Scenes
return m_authenticateHandler.TryChangeCiruitCode(oldcc, newcc);
}
- ///
- /// The Grid has requested that we log-off a user. Log them off.
- ///
- /// Unique ID of the avatar to log-off
- /// SecureSessionID of the user, or the RegionSecret text when logging on to the grid
- /// message to display to the user. Reason for being logged off
- public void HandleLogOffUserFromGrid(UUID AvatarID, UUID RegionSecret, string message)
- {
- ScenePresence loggingOffUser = GetScenePresence(AvatarID);
- if (loggingOffUser != null)
- {
- UUID localRegionSecret = UUID.Zero;
- bool parsedsecret = UUID.TryParse(m_regInfo.regionSecret, out localRegionSecret);
-
- // Region Secret is used here in case a new sessionid overwrites an old one on the user server.
- // Will update the user server in a few revisions to use it.
-
- if (RegionSecret == loggingOffUser.ControllingClient.SecureSessionId || (parsedsecret && RegionSecret == localRegionSecret))
- {
- m_sceneGridService.SendCloseChildAgentConnections(loggingOffUser.UUID, loggingOffUser.KnownRegionHandles);
- loggingOffUser.ControllingClient.Kick(message);
- // Give them a second to receive the message!
- Thread.Sleep(1000);
- loggingOffUser.ControllingClient.Close();
- }
- else
- {
- m_log.Info("[USERLOGOFF]: System sending the LogOff user message failed to sucessfully authenticate");
- }
- }
- else
- {
- m_log.InfoFormat("[USERLOGOFF]: Got a logoff request for {0} but the user isn't here. The user might already have been logged out", AvatarID.ToString());
- }
- }
+// ///
+// /// The Grid has requested that we log-off a user. Log them off.
+// ///
+// /// Unique ID of the avatar to log-off
+// /// SecureSessionID of the user, or the RegionSecret text when logging on to the grid
+// /// message to display to the user. Reason for being logged off
+// public void HandleLogOffUserFromGrid(UUID AvatarID, UUID RegionSecret, string message)
+// {
+// ScenePresence loggingOffUser = GetScenePresence(AvatarID);
+// if (loggingOffUser != null)
+// {
+// UUID localRegionSecret = UUID.Zero;
+// bool parsedsecret = UUID.TryParse(m_regInfo.regionSecret, out localRegionSecret);
+//
+// // Region Secret is used here in case a new sessionid overwrites an old one on the user server.
+// // Will update the user server in a few revisions to use it.
+//
+// if (RegionSecret == loggingOffUser.ControllingClient.SecureSessionId || (parsedsecret && RegionSecret == localRegionSecret))
+// {
+// m_sceneGridService.SendCloseChildAgentConnections(loggingOffUser.UUID, loggingOffUser.KnownRegionHandles);
+// loggingOffUser.ControllingClient.Kick(message);
+// // Give them a second to receive the message!
+// Thread.Sleep(1000);
+// loggingOffUser.ControllingClient.Close();
+// }
+// else
+// {
+// m_log.Info("[USERLOGOFF]: System sending the LogOff user message failed to sucessfully authenticate");
+// }
+// }
+// else
+// {
+// m_log.InfoFormat("[USERLOGOFF]: Got a logoff request for {0} but the user isn't here. The user might already have been logged out", AvatarID.ToString());
+// }
+// }
///
/// Triggered when an agent crosses into this sim. Also happens on initial login.
--
cgit v1.1