* Changed 11 calls for session info to the more optimized API method

This commit is contained in:
John Hurliman
2010-09-08 15:08:49 -07:00
parent 3fb4a17f10
commit 5dc9ea2f24
4 changed files with 37 additions and 81 deletions

View File

@@ -291,8 +291,8 @@ namespace OpenSim.Services.Connectors.SimianGrid
// Check if the user is online
if (client.Scene is Scene)
{
OpenSim.Services.Interfaces.PresenceInfo[] presences = ((Scene)client.Scene).PresenceService.GetAgents(new string[] { avatarID.ToString() });
if (presences != null && presences.Length > 0)
OpenSim.Services.Interfaces.PresenceInfo presence = ((Scene)client.Scene).PresenceService.GetAgent(avatarID);
if (presence != null)
flags |= ProfileFlags.Online;
}