aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/Scripting
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/CoreModules/Scripting')
-rw-r--r--OpenSim/Region/CoreModules/Scripting/WorldComm/WorldCommModule.cs15
1 files changed, 9 insertions, 6 deletions
diff --git a/OpenSim/Region/CoreModules/Scripting/WorldComm/WorldCommModule.cs b/OpenSim/Region/CoreModules/Scripting/WorldComm/WorldCommModule.cs
index 090f1d5..08e08c8 100644
--- a/OpenSim/Region/CoreModules/Scripting/WorldComm/WorldCommModule.cs
+++ b/OpenSim/Region/CoreModules/Scripting/WorldComm/WorldCommModule.cs
@@ -575,13 +575,16 @@ namespace OpenSim.Region.CoreModules.Scripting.WorldComm
575 { 575 {
576 List<Object> data = new List<Object>(); 576 List<Object> data = new List<Object>();
577 577
578 foreach (List<ListenerInfo> list in m_listeners.Values) 578 lock (m_listeners)
579 { 579 {
580 foreach (ListenerInfo l in list) 580 foreach (List<ListenerInfo> list in m_listeners.Values)
581 { 581 {
582 if (l.GetItemID() == itemID) 582 foreach (ListenerInfo l in list)
583 data.AddRange(l.GetSerializationData()); 583 {
584 } 584 if (l.GetItemID() == itemID)
585 data.AddRange(l.GetSerializationData());
586 }
587 }
585 } 588 }
586 return (Object[])data.ToArray(); 589 return (Object[])data.ToArray();
587 } 590 }