Prevent users from becoming stuck online. This affects only 0.7

avinationmerge
Melanie Thielker 2010-08-06 00:02:38 +02:00
parent 7368992ee9
commit d7fe9f7b44
1 changed files with 2 additions and 0 deletions

View File

@ -4292,6 +4292,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;