Eat a lockign exception that kills scripts. May bear more investigation
in the long run.avinationmerge
parent
83aec1ec94
commit
516ec4acd0
|
@ -136,13 +136,22 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
if (m_partsLock.RecursiveReadCount > 0)
|
||||
{
|
||||
m_log.Error("[SceneObjectGroup.m_parts] Recursive read lock requested. This should not happen and means something needs to be fixed. For now though, it's safe to continue.");
|
||||
try
|
||||
{
|
||||
m_partsLock.ExitReadLock();
|
||||
}
|
||||
catch { } // Ignore errors, to allow resync
|
||||
}
|
||||
if (m_partsLock.RecursiveWriteCount > 0)
|
||||
{
|
||||
m_log.Error("[SceneObjectGroup.m_parts] Recursive read lock requested (write lock exists on this thread). This should not happen and means something needs to be fixed.");
|
||||
try
|
||||
{
|
||||
m_partsLock.ExitWriteLock();
|
||||
}
|
||||
catch { }
|
||||
|
||||
}
|
||||
|
||||
while (!m_partsLock.TryEnterReadLock(60000))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue