diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/SensorRepeat.cs | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/SensorRepeat.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/SensorRepeat.cs index ee01c3c..b75a2e4 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/SensorRepeat.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/SensorRepeat.cs | |||
@@ -516,16 +516,19 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Plugins | |||
516 | { | 516 | { |
517 | List<Object> data = new List<Object>(); | 517 | List<Object> data = new List<Object>(); |
518 | 518 | ||
519 | foreach (SenseRepeatClass ts in SenseRepeaters) | 519 | lock (SenseRepeatListLock) |
520 | { | 520 | { |
521 | if (ts.itemID == itemID) | 521 | foreach (SenseRepeatClass ts in SenseRepeaters) |
522 | { | 522 | { |
523 | data.Add(ts.interval); | 523 | if (ts.itemID == itemID) |
524 | data.Add(ts.name); | 524 | { |
525 | data.Add(ts.keyID); | 525 | data.Add(ts.interval); |
526 | data.Add(ts.type); | 526 | data.Add(ts.name); |
527 | data.Add(ts.range); | 527 | data.Add(ts.keyID); |
528 | data.Add(ts.arc); | 528 | data.Add(ts.type); |
529 | data.Add(ts.range); | ||
530 | data.Add(ts.arc); | ||
531 | } | ||
529 | } | 532 | } |
530 | } | 533 | } |
531 | return data.ToArray(); | 534 | return data.ToArray(); |