Forgot mutex lock on List<> for timers
parent
d9b9b16513
commit
53ef427e9e
|
@ -124,6 +124,9 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
|
||||||
if (Timers.Count == 0)
|
if (Timers.Count == 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
lock (ListLock)
|
||||||
|
{
|
||||||
|
|
||||||
// Go through all timers
|
// Go through all timers
|
||||||
foreach (TimerClass ts in Timers)
|
foreach (TimerClass ts in Timers)
|
||||||
{
|
{
|
||||||
|
@ -138,6 +141,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
|
||||||
ts.next = DateTime.Now.ToUniversalTime().AddSeconds(ts.interval);
|
ts.next = DateTime.Now.ToUniversalTime().AddSeconds(ts.interval);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} // lock
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue