From 2d4d1adb4df94fbe57dfbaa0ea834021da6c786d Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Mon, 22 Aug 2016 07:24:58 +0100 Subject: locking issue --- OpenSim/Region/CoreModules/Scripting/WorldComm/WorldCommModule.cs | 4 ++-- 1 file 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 return coll[0].GetHandle(); } - if (m_curlisteners < m_maxlisteners) + lock (m_listeners) { - lock (m_listeners) + if (m_curlisteners < m_maxlisteners) { int newHandle = GetNewHandle(itemID); -- cgit v1.1