aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Common
diff options
context:
space:
mode:
authorJeff Ames2008-05-14 05:33:32 +0000
committerJeff Ames2008-05-14 05:33:32 +0000
commit6a1b787436cc59043a26a296781e7a7b5ea0c67b (patch)
tree10f55a7b0abfdc47f103d40f13f3cae530c13581 /OpenSim/Region/ScriptEngine/Common
parentFormatting cleanup. (diff)
downloadopensim-SC-6a1b787436cc59043a26a296781e7a7b5ea0c67b.zip
opensim-SC-6a1b787436cc59043a26a296781e7a7b5ea0c67b.tar.gz
opensim-SC-6a1b787436cc59043a26a296781e7a7b5ea0c67b.tar.bz2
opensim-SC-6a1b787436cc59043a26a296781e7a7b5ea0c67b.tar.xz
More formatting cleanup.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Common')
-rw-r--r--OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/ScriptManager.cs11
1 files changed, 7 insertions, 4 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/ScriptManager.cs b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/ScriptManager.cs
index da30535..2233913 100644
--- a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/ScriptManager.cs
+++ b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/ScriptManager.cs
@@ -207,7 +207,8 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase
207 207
208 public void DoScriptLoadUnload() 208 public void DoScriptLoadUnload()
209 { 209 {
210 lock (LUQueue) { 210 lock (LUQueue)
211 {
211 if (LUQueue.Count > 0) 212 if (LUQueue.Count > 0)
212 { 213 {
213 LUStruct item = LUQueue.Dequeue(); 214 LUStruct item = LUQueue.Dequeue();
@@ -216,7 +217,7 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase
216 { 217 {
217 _StopScript(item.localID, item.itemID); 218 _StopScript(item.localID, item.itemID);
218 } 219 }
219 if (item.Action == LUType.Load) 220 else if (item.Action == LUType.Load)
220 { 221 {
221 _StartScript(item.localID, item.itemID, item.script); 222 _StartScript(item.localID, item.itemID, item.script);
222 } 223 }
@@ -249,7 +250,8 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase
249 /// <param name="localID"></param> 250 /// <param name="localID"></param>
250 public void StartScript(uint localID, LLUUID itemID, string Script) 251 public void StartScript(uint localID, LLUUID itemID, string Script)
251 { 252 {
252 lock(LUQueue) { 253 lock (LUQueue)
254 {
253 if (LUQueue.Count >= LoadUnloadMaxQueueSize) 255 if (LUQueue.Count >= LoadUnloadMaxQueueSize)
254 { 256 {
255 m_scriptEngine.Log.Error("[" + m_scriptEngine.ScriptEngineName + "]: ERROR: Load/unload queue item count is at " + LUQueue.Count + ". Config variable \"LoadUnloadMaxQueueSize\" is set to " + LoadUnloadMaxQueueSize + ", so ignoring new script."); 257 m_scriptEngine.Log.Error("[" + m_scriptEngine.ScriptEngineName + "]: ERROR: Load/unload queue item count is at " + LUQueue.Count + ". Config variable \"LoadUnloadMaxQueueSize\" is set to " + LoadUnloadMaxQueueSize + ", so ignoring new script.");
@@ -276,7 +278,8 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase
276 ls.localID = localID; 278 ls.localID = localID;
277 ls.itemID = itemID; 279 ls.itemID = itemID;
278 ls.Action = LUType.Unload; 280 ls.Action = LUType.Unload;
279 lock (LUQueue) { 281 lock (LUQueue)
282 {
280 LUQueue.Enqueue(ls); 283 LUQueue.Enqueue(ls);
281 } 284 }
282 } 285 }