aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Services/Connectors/SimianGrid
diff options
context:
space:
mode:
authorJohn Hurliman2010-09-29 14:34:02 -0700
committerJohn Hurliman2010-09-29 14:34:02 -0700
commitb6e0563ad7ad7f6fc396229823d7e76cd31dced7 (patch)
tree27c0549dbd94e43fbffe7b057487e7e7b6fb3d5d /OpenSim/Services/Connectors/SimianGrid
parentMade IGridUserService.SetLastPosition() more flexible to allow different poss... (diff)
downloadopensim-SC_OLD-b6e0563ad7ad7f6fc396229823d7e76cd31dced7.zip
opensim-SC_OLD-b6e0563ad7ad7f6fc396229823d7e76cd31dced7.tar.gz
opensim-SC_OLD-b6e0563ad7ad7f6fc396229823d7e76cd31dced7.tar.bz2
opensim-SC_OLD-b6e0563ad7ad7f6fc396229823d7e76cd31dced7.tar.xz
Part two of the previous commit, making IGridUserService.LoggedOut() more flexible without changing current behavior
Diffstat (limited to 'OpenSim/Services/Connectors/SimianGrid')
-rw-r--r--OpenSim/Services/Connectors/SimianGrid/SimianActivityDetector.cs6
-rw-r--r--OpenSim/Services/Connectors/SimianGrid/SimianPresenceServiceConnector.cs2
2 files changed, 2 insertions, 6 deletions
diff --git a/OpenSim/Services/Connectors/SimianGrid/SimianActivityDetector.cs b/OpenSim/Services/Connectors/SimianGrid/SimianActivityDetector.cs
index c89c81a..b8703c6 100644
--- a/OpenSim/Services/Connectors/SimianGrid/SimianActivityDetector.cs
+++ b/OpenSim/Services/Connectors/SimianGrid/SimianActivityDetector.cs
@@ -40,7 +40,6 @@ namespace OpenSim.Services.Connectors.SimianGrid
40 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); 40 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
41 41
42 private IGridUserService m_GridUserService; 42 private IGridUserService m_GridUserService;
43 private Scene m_aScene;
44 43
45 public SimianActivityDetector(IGridUserService guService) 44 public SimianActivityDetector(IGridUserService guService)
46 { 45 {
@@ -55,9 +54,6 @@ namespace OpenSim.Services.Connectors.SimianGrid
55 scene.EventManager.OnMakeRootAgent += OnMakeRootAgent; 54 scene.EventManager.OnMakeRootAgent += OnMakeRootAgent;
56 scene.EventManager.OnNewClient += OnNewClient; 55 scene.EventManager.OnNewClient += OnNewClient;
57 scene.EventManager.OnAvatarEnteringNewParcel += OnEnteringNewParcel; 56 scene.EventManager.OnAvatarEnteringNewParcel += OnEnteringNewParcel;
58
59 if (m_aScene == null)
60 m_aScene = scene;
61 } 57 }
62 58
63 public void RemoveRegion(Scene scene) 59 public void RemoveRegion(Scene scene)
@@ -102,7 +98,7 @@ namespace OpenSim.Services.Connectors.SimianGrid
102 } 98 }
103 99
104 m_log.DebugFormat("[SIMIAN ACTIVITY DETECTOR]: Detected client logout {0} in {1}", client.AgentId, client.Scene.RegionInfo.RegionName); 100 m_log.DebugFormat("[SIMIAN ACTIVITY DETECTOR]: Detected client logout {0} in {1}", client.AgentId, client.Scene.RegionInfo.RegionName);
105 m_GridUserService.LoggedOut(client.AgentId.ToString(), client.Scene.RegionInfo.RegionID, position, lookat); 101 m_GridUserService.LoggedOut(client.AgentId.ToString(), client.SessionId, client.Scene.RegionInfo.RegionID, position, lookat);
106 } 102 }
107 } 103 }
108 104
diff --git a/OpenSim/Services/Connectors/SimianGrid/SimianPresenceServiceConnector.cs b/OpenSim/Services/Connectors/SimianGrid/SimianPresenceServiceConnector.cs
index fa51c9a..a41c6ad 100644
--- a/OpenSim/Services/Connectors/SimianGrid/SimianPresenceServiceConnector.cs
+++ b/OpenSim/Services/Connectors/SimianGrid/SimianPresenceServiceConnector.cs
@@ -260,7 +260,7 @@ namespace OpenSim.Services.Connectors.SimianGrid
260 return null; 260 return null;
261 } 261 }
262 262
263 public bool LoggedOut(string userID, UUID regionID, Vector3 lastPosition, Vector3 lastLookAt) 263 public bool LoggedOut(string userID, UUID sessionID, UUID regionID, Vector3 lastPosition, Vector3 lastLookAt)
264 { 264 {
265 // Save our last position as user data 265 // Save our last position as user data
266 NameValueCollection requestArgs = new NameValueCollection 266 NameValueCollection requestArgs = new NameValueCollection