mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 16:22:50 +08:00
From: Alan Webb <alan_webb@us.ibm.com>
Fix null reference exception during close down of IRC module if the region was not actually initialized.
This commit is contained in:
@@ -148,8 +148,16 @@ namespace OpenSim.Region.OptionalModules.Avatar.Chat
|
||||
if (!enabled)
|
||||
return;
|
||||
|
||||
if (region == null)
|
||||
return;
|
||||
|
||||
region.Close();
|
||||
lock (m_regions) m_regions.Remove(region);
|
||||
|
||||
if(m_regions.Contains(region))
|
||||
{
|
||||
lock (m_regions) m_regions.Remove(region);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
Reference in New Issue
Block a user