Prevent users from becoming stuck online. This affects only 0.7

prebuild-update
Melanie Thielker 2010-08-06 00:02:38 +02:00 committed by Melanie
parent 1cae505ea1
commit db2f63706d
1 changed files with 2 additions and 0 deletions

View File

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