From b3dc462ee3af40c8d938a8b8840a9e18a8f1e4b5 Mon Sep 17 00:00:00 2001 From: diva Date: Fri, 19 Dec 2008 23:58:13 +0000 Subject: The previous fix for the EQ might have been too radical, and some early events now may be getting dropped because the EQ is not there yet. So, let's add an EQ immediately upon registering caps. --- .../Modules/Framework/EventQueueGetModule.cs | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/OpenSim/Region/Environment/Modules/Framework/EventQueueGetModule.cs b/OpenSim/Region/Environment/Modules/Framework/EventQueueGetModule.cs index 436231b..c5930a0 100644 --- a/OpenSim/Region/Environment/Modules/Framework/EventQueueGetModule.cs +++ b/OpenSim/Region/Environment/Modules/Framework/EventQueueGetModule.cs @@ -195,21 +195,6 @@ namespace OpenSim.Region.Environment.Modules.Framework private void OnNewClient(IClientAPI client) { - //m_log.DebugFormat("[EVENTQUEUE]: New client {0} detected in region {1}", client.AgentId, m_scene.RegionInfo.RegionName); - //lock (queues) - //{ - // if (queues.ContainsKey(client.AgentId)) - // { - // m_log.DebugFormat("[EVENTQUEUE]: Removing old queue for agent {0} in region {1}", client.AgentId, - // m_scene.RegionInfo.RegionName); - // queues.Remove(client.AgentId); - // } - - // m_log.DebugFormat("[EVENTQUEUE]: Adding new queue for agent {0} in region {1}", client.AgentId, - // m_scene.RegionInfo.RegionName); - // queues[client.AgentId] = new BlockingLLSDQueue(); - //} - client.OnLogout += ClientClosed; } @@ -291,6 +276,10 @@ namespace OpenSim.Region.Environment.Modules.Framework public void OnRegisterCaps(UUID agentID, Caps caps) { m_log.DebugFormat("[EVENTQUEUE] OnRegisterCaps: agentID {0} caps {1} region {2}", agentID, caps, m_scene.RegionInfo.RegionName); + + // Let's instantiate a Queue for this agent right now + TryGetQueue(agentID); + string capsBase = "/CAPS/EQG/"; UUID EventQueueGetUUID = UUID.Zero; -- cgit v1.1