diff options
-rw-r--r-- | OpenSim/Region/CoreModules/Scripting/WorldComm/WorldCommModule.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/CoreModules/Scripting/WorldComm/WorldCommModule.cs b/OpenSim/Region/CoreModules/Scripting/WorldComm/WorldCommModule.cs index 68ca2ad..483c25f 100644 --- a/OpenSim/Region/CoreModules/Scripting/WorldComm/WorldCommModule.cs +++ b/OpenSim/Region/CoreModules/Scripting/WorldComm/WorldCommModule.cs | |||
@@ -559,9 +559,9 @@ namespace OpenSim.Region.CoreModules.Scripting.WorldComm | |||
559 | return coll[0].GetHandle(); | 559 | return coll[0].GetHandle(); |
560 | } | 560 | } |
561 | 561 | ||
562 | if (m_curlisteners < m_maxlisteners) | 562 | lock (m_listeners) |
563 | { | 563 | { |
564 | lock (m_listeners) | 564 | if (m_curlisteners < m_maxlisteners) |
565 | { | 565 | { |
566 | int newHandle = GetNewHandle(itemID); | 566 | int newHandle = GetNewHandle(itemID); |
567 | 567 | ||