fixing crash due to make-child and make-root stepping on each other's toes

0.6.3-post-fixes
Dr Scofield 2009-02-13 16:11:52 +00:00
parent 1b4a615690
commit 6600a7a9bc
1 changed files with 16 additions and 7 deletions

View File

@ -280,9 +280,13 @@ namespace OpenSim.Region.OptionalModules.Avatar.Concierge
{
m_log.DebugFormat("[Concierge]: {0} logs off from {1}", client.Name, client.Scene.RegionInfo.RegionName);
RemoveFromAttendeeList(client.AgentId, client.Name, client.Scene);
lock(m_sceneAttendees)
{
AnnounceToAgentsRegion(client.Scene, String.Format(m_announceLeaving, client.Name, client.Scene.RegionInfo.RegionName,
m_sceneAttendees[client.Scene].Count));
UpdateBroker(client.Scene);
m_attendeeNames.Remove(client.AgentId);
}
}
}
@ -348,7 +352,6 @@ namespace OpenSim.Region.OptionalModules.Avatar.Concierge
}
attendees.Remove(agentID);
m_attendeeNames.Remove(agentID);
}
}
@ -386,11 +389,17 @@ namespace OpenSim.Region.OptionalModules.Avatar.Concierge
attendees.Count, scene.RegionInfo.RegionName,
scene.RegionInfo.RegionID,
DateTime.UtcNow.ToString("s")));
lock(m_sceneAttendees)
{
foreach (UUID uuid in attendees)
{
if (m_attendeeNames.ContainsKey(uuid))
{
string name = m_attendeeNames[uuid];
list.Append(String.Format(" <avatar name=\"{0}\" uuid=\"{1}\" />\n", name, uuid));
}
}
}
list.Append("</avatars>");
}
string payload = list.ToString();