fix llRequestAgentData cache timeout

LSLKeyTest
UbitUmarov 2015-11-17 05:14:54 +00:00
parent 364082d0e8
commit dd18c9f689
1 changed files with 2 additions and 1 deletions

View File

@ -4808,7 +4808,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
pinfo = ce.pinfo; pinfo = ce.pinfo;
} }
if (Util.EnvironmentTickCount() < ce.time || (Util.EnvironmentTickCount() - ce.time) >= 20000) if (Util.EnvironmentTickCount() < ce.time ||
(Util.EnvironmentTickCount() - ce.time) >= LlRequestAgentDataCacheTimeoutMs)
{ {
PresenceInfo[] pinfos = World.PresenceService.GetAgents(new string[] { uuid.ToString() }); PresenceInfo[] pinfos = World.PresenceService.GetAgents(new string[] { uuid.ToString() });
if (pinfos != null && pinfos.Length > 0) if (pinfos != null && pinfos.Length > 0)