aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/EventManager.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/EventManager.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/EventManager.cs16
1 files changed, 15 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/EventManager.cs b/OpenSim/Region/Framework/Scenes/EventManager.cs
index a4a1abc..c50082d 100644
--- a/OpenSim/Region/Framework/Scenes/EventManager.cs
+++ b/OpenSim/Region/Framework/Scenes/EventManager.cs
@@ -469,7 +469,21 @@ namespace OpenSim.Region.Framework.Scenes
469 { 469 {
470 handlerOnAttach = OnAttach; 470 handlerOnAttach = OnAttach;
471 if (handlerOnAttach != null) 471 if (handlerOnAttach != null)
472 handlerOnAttach(localID, itemID, avatarID); 472 {
473 foreach (Delegate d in handlerOnAttach.GetInvocationList())
474 {
475 try
476 {
477 d(localID, itemID, avatarID);
478 }
479 catch (Exception e)
480 {
481 m_log.ErrorFormat(
482 "[EVENT MANAGER]: Delegate for TriggerOnAttach failed - continuing. Error was {0} {1}",
483 e.Message, e.StackTrace);
484 }
485 }
486 }
473 } 487 }
474 488
475 public void TriggerGetScriptRunning(IClientAPI controllingClient, UUID objectID, UUID itemID) 489 public void TriggerGetScriptRunning(IClientAPI controllingClient, UUID objectID, UUID itemID)