diff options
author | UbitUmarov | 2015-11-17 05:14:54 +0000 |
---|---|---|
committer | UbitUmarov | 2015-11-17 05:14:54 +0000 |
commit | dd18c9f689517e8e413017a2d45d197bc27b3616 (patch) | |
tree | 743a1ae6f6d348accf81eb717e6a9c2401806441 /OpenSim/Region/ScriptEngine | |
parent | work around some 'tests' errors: add a httpserver (diff) | |
download | opensim-SC_OLD-dd18c9f689517e8e413017a2d45d197bc27b3616.zip opensim-SC_OLD-dd18c9f689517e8e413017a2d45d197bc27b3616.tar.gz opensim-SC_OLD-dd18c9f689517e8e413017a2d45d197bc27b3616.tar.bz2 opensim-SC_OLD-dd18c9f689517e8e413017a2d45d197bc27b3616.tar.xz |
fix llRequestAgentData cache timeout
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index f9f21f1..f7b1392 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -4808,7 +4808,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
4808 | pinfo = ce.pinfo; | 4808 | pinfo = ce.pinfo; |
4809 | } | 4809 | } |
4810 | 4810 | ||
4811 | if (Util.EnvironmentTickCount() < ce.time || (Util.EnvironmentTickCount() - ce.time) >= 20000) | 4811 | if (Util.EnvironmentTickCount() < ce.time || |
4812 | (Util.EnvironmentTickCount() - ce.time) >= LlRequestAgentDataCacheTimeoutMs) | ||
4812 | { | 4813 | { |
4813 | PresenceInfo[] pinfos = World.PresenceService.GetAgents(new string[] { uuid.ToString() }); | 4814 | PresenceInfo[] pinfos = World.PresenceService.GetAgents(new string[] { uuid.ToString() }); |
4814 | if (pinfos != null && pinfos.Length > 0) | 4815 | if (pinfos != null && pinfos.Length > 0) |