diff options
Diffstat (limited to 'OpenSim/Region/ClientStack/Linden/Caps/EventQueue/EventQueueGetModule.cs')
-rw-r--r-- | OpenSim/Region/ClientStack/Linden/Caps/EventQueue/EventQueueGetModule.cs | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/Caps/EventQueue/EventQueueGetModule.cs b/OpenSim/Region/ClientStack/Linden/Caps/EventQueue/EventQueueGetModule.cs index d02496f..c69f758 100644 --- a/OpenSim/Region/ClientStack/Linden/Caps/EventQueue/EventQueueGetModule.cs +++ b/OpenSim/Region/ClientStack/Linden/Caps/EventQueue/EventQueueGetModule.cs | |||
@@ -246,16 +246,8 @@ namespace OpenSim.Region.ClientStack.Linden | |||
246 | { | 246 | { |
247 | //m_log.DebugFormat("[EVENTQUEUE]: Closed client {0} in region {1}", agentID, m_scene.RegionInfo.RegionName); | 247 | //m_log.DebugFormat("[EVENTQUEUE]: Closed client {0} in region {1}", agentID, m_scene.RegionInfo.RegionName); |
248 | 248 | ||
249 | int count = 0; | ||
250 | while (queues.ContainsKey(agentID) && queues[agentID].Count > 0 && count++ < 5) | ||
251 | { | ||
252 | Thread.Sleep(1000); | ||
253 | } | ||
254 | |||
255 | lock (queues) | 249 | lock (queues) |
256 | { | ||
257 | queues.Remove(agentID); | 250 | queues.Remove(agentID); |
258 | } | ||
259 | 251 | ||
260 | List<UUID> removeitems = new List<UUID>(); | 252 | List<UUID> removeitems = new List<UUID>(); |
261 | lock (m_AvatarQueueUUIDMapping) | 253 | lock (m_AvatarQueueUUIDMapping) |