aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/Environment/Modules/Framework/EventQueueGetModule.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/OpenSim/Region/Environment/Modules/Framework/EventQueueGetModule.cs b/OpenSim/Region/Environment/Modules/Framework/EventQueueGetModule.cs
index e395492..dc2a70c 100644
--- a/OpenSim/Region/Environment/Modules/Framework/EventQueueGetModule.cs
+++ b/OpenSim/Region/Environment/Modules/Framework/EventQueueGetModule.cs
@@ -208,8 +208,11 @@ namespace OpenSim.Region.Environment.Modules.Framework
208 { 208 {
209 m_log.DebugFormat("[EVENTQUEUE]: Closed client {0} in region {1}", AgentID, m_scene.RegionInfo.RegionName); 209 m_log.DebugFormat("[EVENTQUEUE]: Closed client {0} in region {1}", AgentID, m_scene.RegionInfo.RegionName);
210 210
211 while ((queues[AgentID] != null) && queues[AgentID].Count() > 0) 211 int count = 0;
212 while (queues.ContainsKey(AgentID) && queues[AgentID].Count() > 0 && count++ < 5)
213 {
212 Thread.Sleep(1000); 214 Thread.Sleep(1000);
215 }
213 216
214 lock (queues) 217 lock (queues)
215 { 218 {