aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/ServiceConnectorsOut/Presence
diff options
context:
space:
mode:
authorUbitUmarov2016-07-27 02:54:32 +0100
committerUbitUmarov2016-07-27 02:54:49 +0100
commitf4fa8919285a4399ebe909aee50285d91f6cd5fe (patch)
treed4cd9e1f68aaec65abea04f3dde8982f84e3de4d /OpenSim/Region/CoreModules/ServiceConnectorsOut/Presence
parentmissing changes about friends on crossings, and missing angular velocity clea... (diff)
downloadopensim-SC-f4fa8919285a4399ebe909aee50285d91f6cd5fe.zip
opensim-SC-f4fa8919285a4399ebe909aee50285d91f6cd5fe.tar.gz
opensim-SC-f4fa8919285a4399ebe909aee50285d91f6cd5fe.tar.bz2
opensim-SC-f4fa8919285a4399ebe909aee50285d91f6cd5fe.tar.xz
waste another thread job on another thing that should be part of a more
unified service, and also not hidding on a so called event"
Diffstat (limited to 'OpenSim/Region/CoreModules/ServiceConnectorsOut/Presence')
-rw-r--r--OpenSim/Region/CoreModules/ServiceConnectorsOut/Presence/PresenceDetector.cs16
1 files changed, 16 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Presence/PresenceDetector.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Presence/PresenceDetector.cs
index 50c252c..117f02c 100644
--- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Presence/PresenceDetector.cs
+++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Presence/PresenceDetector.cs
@@ -68,6 +68,22 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Presence
68 68
69 public void OnMakeRootAgent(ScenePresence sp) 69 public void OnMakeRootAgent(ScenePresence sp)
70 { 70 {
71 if (sp.isNPC)
72 return;
73
74 if(sp.gotCrossUpdate)
75 {
76 Util.FireAndForget(delegate
77 {
78 DoOnMakeRootAgent(sp);
79 }, null, "PresenceDetector_MakeRoot");
80 }
81 else
82 DoOnMakeRootAgent(sp);
83 }
84
85 public void DoOnMakeRootAgent(ScenePresence sp)
86 {
71// m_log.DebugFormat("[PRESENCE DETECTOR]: Detected root presence {0} in {1}", sp.UUID, sp.Scene.RegionInfo.RegionName); 87// m_log.DebugFormat("[PRESENCE DETECTOR]: Detected root presence {0} in {1}", sp.UUID, sp.Scene.RegionInfo.RegionName);
72 if (sp.PresenceType != PresenceType.Npc) 88 if (sp.PresenceType != PresenceType.Npc)
73 m_PresenceService.ReportAgent(sp.ControllingClient.SessionId, sp.Scene.RegionInfo.RegionID); 89 m_PresenceService.ReportAgent(sp.ControllingClient.SessionId, sp.Scene.RegionInfo.RegionID);