diff options
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/ClientStack/LindenUDP/UnackedPacketCollection.cs | 3 | ||||
-rw-r--r-- | OpenSim/Region/ScriptEngine/DotNetEngine/ScriptEngine.cs | 8 |
2 files changed, 7 insertions, 4 deletions
diff --git a/OpenSim/Region/ClientStack/LindenUDP/UnackedPacketCollection.cs b/OpenSim/Region/ClientStack/LindenUDP/UnackedPacketCollection.cs index b7df84d..6ecc0c8 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/UnackedPacketCollection.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/UnackedPacketCollection.cs | |||
@@ -111,6 +111,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
111 | { | 111 | { |
112 | lock (SyncRoot) | 112 | lock (SyncRoot) |
113 | { | 113 | { |
114 | if (packets.Count == 0) | ||
115 | return null; | ||
116 | |||
114 | using (SortedDictionary<uint, OutgoingPacket>.ValueCollection.Enumerator e = packets.Values.GetEnumerator()) | 117 | using (SortedDictionary<uint, OutgoingPacket>.ValueCollection.Enumerator e = packets.Values.GetEnumerator()) |
115 | return e.Current; | 118 | return e.Current; |
116 | } | 119 | } |
diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptEngine.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptEngine.cs index 3c91b29..9806218 100644 --- a/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptEngine.cs +++ b/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptEngine.cs | |||
@@ -129,10 +129,6 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine | |||
129 | 129 | ||
130 | public void AddRegion(Scene Sceneworld) | 130 | public void AddRegion(Scene Sceneworld) |
131 | { | 131 | { |
132 | m_log.Info("[" + ScriptEngineName + "]: ScriptEngine initializing"); | ||
133 | |||
134 | m_Scene = Sceneworld; | ||
135 | |||
136 | // Make sure we have config | 132 | // Make sure we have config |
137 | if (ConfigSource.Configs[ScriptEngineName] == null) | 133 | if (ConfigSource.Configs[ScriptEngineName] == null) |
138 | ConfigSource.AddConfig(ScriptEngineName); | 134 | ConfigSource.AddConfig(ScriptEngineName); |
@@ -143,6 +139,10 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine | |||
143 | if (!m_enabled) | 139 | if (!m_enabled) |
144 | return; | 140 | return; |
145 | 141 | ||
142 | m_log.Info("[" + ScriptEngineName + "]: ScriptEngine initializing"); | ||
143 | |||
144 | m_Scene = Sceneworld; | ||
145 | |||
146 | // Create all objects we'll be using | 146 | // Create all objects we'll be using |
147 | m_EventQueueManager = new EventQueueManager(this); | 147 | m_EventQueueManager = new EventQueueManager(this); |
148 | m_EventManager = new EventManager(this, true); | 148 | m_EventManager = new EventManager(this, true); |