diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/Timer.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/Timer.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/Timer.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/Timer.cs index cae1c14..f8dea98 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/Timer.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/Timer.cs | |||
@@ -110,8 +110,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Plugins | |||
110 | string key = MakeTimerKey(m_localID, m_itemID); | 110 | string key = MakeTimerKey(m_localID, m_itemID); |
111 | lock (TimerListLock) | 111 | lock (TimerListLock) |
112 | { | 112 | { |
113 | if (Timers.ContainsKey(key)) | 113 | if (Timers.TryGetValue(key, out TimerInfo ts)) |
114 | { | 114 | { |
115 | m_CmdManager.m_ScriptEngine.CancelScriptEvent(ts.itemID, "timer"); | ||
115 | Timers.Remove(key); | 116 | Timers.Remove(key); |
116 | } | 117 | } |
117 | } | 118 | } |