diff options
author | John Hurliman | 2010-09-08 15:08:49 -0700 |
---|---|---|
committer | John Hurliman | 2010-09-08 15:08:49 -0700 |
commit | 5dc9ea2f2487804d788b4b80d40d91bd792de4c2 (patch) | |
tree | 86d8628f18dff92ab3e8c5f730155072076b73c5 /OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |
parent | No need for a config var for the HELO message on the server-side. It's robust. (diff) | |
download | opensim-SC-5dc9ea2f2487804d788b4b80d40d91bd792de4c2.zip opensim-SC-5dc9ea2f2487804d788b4b80d40d91bd792de4c2.tar.gz opensim-SC-5dc9ea2f2487804d788b4b80d40d91bd792de4c2.tar.bz2 opensim-SC-5dc9ea2f2487804d788b4b80d40d91bd792de4c2.tar.xz |
* Changed 11 calls for session info to the more optimized API method
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 10 |
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; |