Forgot mutex lock on List<> for timers

afrisby
Tedd Hansen 2007-08-25 21:50:28 +00:00
parent d9b9b16513
commit 53ef427e9e
1 changed files with 15 additions and 11 deletions

View File

@ -124,6 +124,9 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
if (Timers.Count == 0)
return;
lock (ListLock)
{
// Go through all timers
foreach (TimerClass ts in Timers)
{
@ -138,6 +141,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
ts.next = DateTime.Now.ToUniversalTime().AddSeconds(ts.interval);
}
}
} // lock
}
}