diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventQueueManager.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventQueueManager.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventQueueManager.cs b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventQueueManager.cs index ac0ab7e..8538c13 100644 --- a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventQueueManager.cs +++ b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventQueueManager.cs | |||
@@ -355,10 +355,14 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase | |||
355 | /// <param name="param">Array of parameters to match event mask</param> | 355 | /// <param name="param">Array of parameters to match event mask</param> |
356 | public bool AddToScriptQueue(uint localID, UUID itemID, string FunctionName, Queue_llDetectParams_Struct qParams, params object[] param) | 356 | public bool AddToScriptQueue(uint localID, UUID itemID, string FunctionName, Queue_llDetectParams_Struct qParams, params object[] param) |
357 | { | 357 | { |
358 | List<UUID> keylist = new List<UUID>(m_ScriptEngine.m_ScriptManager.GetScriptKeys(localID)); | 358 | List<UUID> keylist = m_ScriptEngine.m_ScriptManager.GetScriptKeys(localID); |
359 | 359 | ||
360 | System.Console.WriteLine("==> got {0} keys", keylist.Count); | ||
360 | if (!keylist.Contains(itemID)) // We don't manage that script | 361 | if (!keylist.Contains(itemID)) // We don't manage that script |
362 | { | ||
363 | System.Console.WriteLine("==> Script not found"); | ||
361 | return false; | 364 | return false; |
365 | } | ||
362 | 366 | ||
363 | lock (eventQueue) | 367 | lock (eventQueue) |
364 | { | 368 | { |
@@ -379,6 +383,7 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase | |||
379 | 383 | ||
380 | // Add it to queue | 384 | // Add it to queue |
381 | eventQueue.Enqueue(QIS); | 385 | eventQueue.Enqueue(QIS); |
386 | System.Console.WriteLine("==> PostedEvent"); | ||
382 | } | 387 | } |
383 | return true; | 388 | return true; |
384 | } | 389 | } |