aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs10
1 files changed, 2 insertions, 8 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index b51b410..a9c5d10 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -3971,9 +3971,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
3971 } 3971 }
3972 3972
3973 3973
3974 PresenceInfo[] pinfos = World.PresenceService.GetAgents(new string[] { uuid.ToString() }); 3974 pinfo = World.PresenceService.GetAgent(uuid);
3975 if (pinfos != null && pinfos.Length > 0)
3976 pinfo = pinfos[0];
3977 3975
3978 ce = new UserInfoCacheEntry(); 3976 ce = new UserInfoCacheEntry();
3979 ce.time = Util.EnvironmentTickCount(); 3977 ce.time = Util.EnvironmentTickCount();
@@ -3991,11 +3989,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
3991 3989
3992 if (Util.EnvironmentTickCount() < ce.time || (Util.EnvironmentTickCount() - ce.time) >= 20000) 3990 if (Util.EnvironmentTickCount() < ce.time || (Util.EnvironmentTickCount() - ce.time) >= 20000)
3993 { 3991 {
3994 PresenceInfo[] pinfos = World.PresenceService.GetAgents(new string[] { uuid.ToString() }); 3992 pinfo = World.PresenceService.GetAgent(uuid);
3995 if (pinfos != null && pinfos.Length > 0)
3996 pinfo = pinfos[0];
3997 else
3998 pinfo = null;
3999 3993
4000 ce.time = Util.EnvironmentTickCount(); 3994 ce.time = Util.EnvironmentTickCount();
4001 ce.pinfo = pinfo; 3995 ce.pinfo = pinfo;