mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 17:05:55 +08:00
Ensure the specified imSessionID exists in the DroppedSession collection before attempting to access it.
This commit is contained in:
@@ -425,7 +425,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups
|
||||
|
||||
foreach (GroupMembersData member in m_groupsModule.GroupMembersRequest(null, groupID))
|
||||
{
|
||||
if (m_agentsDroppedSession[im.imSessionID].Contains(member.AgentID.Guid))
|
||||
if (!m_agentsDroppedSession.ContainsKey(im.imSessionID) || m_agentsDroppedSession[im.imSessionID].Contains(member.AgentID.Guid))
|
||||
{
|
||||
// Don't deliver messages to people who have dropped this session
|
||||
if (m_debugEnabled) m_log.DebugFormat("[GROUPS-MESSAGING]: {0} has dropped session, not delivering to them", member.AgentID);
|
||||
|
||||
Reference in New Issue
Block a user