locking issue

LSLKeyTest
UbitUmarov 2016-08-22 07:24:58 +01:00
parent cc322861ca
commit 2d4d1adb4d
1 changed files with 2 additions and 2 deletions

View File

@ -559,9 +559,9 @@ namespace OpenSim.Region.CoreModules.Scripting.WorldComm
return coll[0].GetHandle(); return coll[0].GetHandle();
} }
if (m_curlisteners < m_maxlisteners)
{
lock (m_listeners) lock (m_listeners)
{
if (m_curlisteners < m_maxlisteners)
{ {
int newHandle = GetNewHandle(itemID); int newHandle = GetNewHandle(itemID);