diff options
author | Michael Cortez | 2009-10-05 11:59:33 -0700 |
---|---|---|
committer | Melanie | 2009-10-05 20:52:01 +0100 |
commit | 90d1ef9e4af1832a5103559b029547327c5ad752 (patch) | |
tree | 8ed88cda886f84d9938efac576b3b574bea81b12 /OpenSim | |
parent | Adapt to renamed members in landObject (diff) | |
download | opensim-SC-90d1ef9e4af1832a5103559b029547327c5ad752.zip opensim-SC-90d1ef9e4af1832a5103559b029547327c5ad752.tar.gz opensim-SC-90d1ef9e4af1832a5103559b029547327c5ad752.tar.bz2 opensim-SC-90d1ef9e4af1832a5103559b029547327c5ad752.tar.xz |
Ensure the specified imSessionID exists in the DroppedSession collection before attempting to access it.
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/GroupsMessagingModule.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/GroupsMessagingModule.cs b/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/GroupsMessagingModule.cs index 631d801..00fe5df 100644 --- a/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/GroupsMessagingModule.cs +++ b/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/GroupsMessagingModule.cs | |||
@@ -425,7 +425,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
425 | 425 | ||
426 | foreach (GroupMembersData member in m_groupsModule.GroupMembersRequest(null, groupID)) | 426 | foreach (GroupMembersData member in m_groupsModule.GroupMembersRequest(null, groupID)) |
427 | { | 427 | { |
428 | if (m_agentsDroppedSession[im.imSessionID].Contains(member.AgentID.Guid)) | 428 | if (!m_agentsDroppedSession.ContainsKey(im.imSessionID) || m_agentsDroppedSession[im.imSessionID].Contains(member.AgentID.Guid)) |
429 | { | 429 | { |
430 | // Don't deliver messages to people who have dropped this session | 430 | // Don't deliver messages to people who have dropped this session |
431 | if (m_debugEnabled) m_log.DebugFormat("[GROUPS-MESSAGING]: {0} has dropped session, not delivering to them", member.AgentID); | 431 | if (m_debugEnabled) m_log.DebugFormat("[GROUPS-MESSAGING]: {0} has dropped session, not delivering to them", member.AgentID); |