Move SenseRepeaters.Count check inside the SenseRepeatListLock.
No methods in the List class are thread safe in the MS specification/documentation0.7.2-post-fixes
parent
0c931e3657
commit
a315aee803
|
@ -151,13 +151,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Plugins
|
||||||
}
|
}
|
||||||
|
|
||||||
public void CheckSenseRepeaterEvents()
|
public void CheckSenseRepeaterEvents()
|
||||||
|
{
|
||||||
|
lock (SenseRepeatListLock)
|
||||||
{
|
{
|
||||||
// Nothing to do here?
|
// Nothing to do here?
|
||||||
if (SenseRepeaters.Count == 0)
|
if (SenseRepeaters.Count == 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
lock (SenseRepeatListLock)
|
|
||||||
{
|
|
||||||
// Go through all timers
|
// Go through all timers
|
||||||
foreach (SenseRepeatClass ts in SenseRepeaters)
|
foreach (SenseRepeatClass ts in SenseRepeaters)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue