mirror of
https://github.com/opensim/opensim.git
synced 2026-07-31 13:55:35 +08:00
Yengine: we also need to cancel timer events in queue, because some bad scripts that do work on X
This commit is contained in:
@@ -110,8 +110,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Plugins
|
||||
string key = MakeTimerKey(m_localID, m_itemID);
|
||||
lock (TimerListLock)
|
||||
{
|
||||
if (Timers.ContainsKey(key))
|
||||
if (Timers.TryGetValue(key, out TimerInfo ts))
|
||||
{
|
||||
m_CmdManager.m_ScriptEngine.CancelScriptEvent(ts.itemID, "timer");
|
||||
Timers.Remove(key);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user