mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
From: Alan M Webb <alan_webb@us.ibm.com>
This fixes *another* sync error in a list/dictionary iterator. This time in WorldComm. I'm beginning to think something is going on...
This commit is contained in:
@@ -575,13 +575,16 @@ namespace OpenSim.Region.CoreModules.Scripting.WorldComm
|
||||
{
|
||||
List<Object> data = new List<Object>();
|
||||
|
||||
foreach (List<ListenerInfo> list in m_listeners.Values)
|
||||
lock (m_listeners)
|
||||
{
|
||||
foreach (ListenerInfo l in list)
|
||||
{
|
||||
if (l.GetItemID() == itemID)
|
||||
data.AddRange(l.GetSerializationData());
|
||||
}
|
||||
foreach (List<ListenerInfo> list in m_listeners.Values)
|
||||
{
|
||||
foreach (ListenerInfo l in list)
|
||||
{
|
||||
if (l.GetItemID() == itemID)
|
||||
data.AddRange(l.GetSerializationData());
|
||||
}
|
||||
}
|
||||
}
|
||||
return (Object[])data.ToArray();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user