aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs b/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs
index 5793cc9..5bfe97a 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs
@@ -173,6 +173,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
173 173
174 public Queue EventQueue { get; private set; } 174 public Queue EventQueue { get; private set; }
175 175
176 public long EventsProcessed { get; private set; }
177
176 public int StartParam { get; set; } 178 public int StartParam { get; set; }
177 179
178 public TaskInventoryItem ScriptTask { get; private set; } 180 public TaskInventoryItem ScriptTask { get; private set; }
@@ -808,6 +810,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
808 // script engine to run the next event. 810 // script engine to run the next event.
809 lock (EventQueue) 811 lock (EventQueue)
810 { 812 {
813 EventsProcessed++;
814
811 if (EventQueue.Count > 0 && Running && !ShuttingDown) 815 if (EventQueue.Count > 0 && Running && !ShuttingDown)
812 { 816 {
813 m_CurrentWorkItem = Engine.QueueEventHandler(this); 817 m_CurrentWorkItem = Engine.QueueEventHandler(this);