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.

0.6.1-post-fixes
diva 2008-12-19 23:58:13 +00:00
parent e86f4d9723
commit b3dc462ee3
1 changed files with 4 additions and 15 deletions

View File

@ -195,21 +195,6 @@ namespace OpenSim.Region.Environment.Modules.Framework
private void OnNewClient(IClientAPI client) 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; client.OnLogout += ClientClosed;
} }
@ -291,6 +276,10 @@ namespace OpenSim.Region.Environment.Modules.Framework
public void OnRegisterCaps(UUID agentID, Caps caps) public void OnRegisterCaps(UUID agentID, Caps caps)
{ {
m_log.DebugFormat("[EVENTQUEUE] OnRegisterCaps: agentID {0} caps {1} region {2}", agentID, caps, m_scene.RegionInfo.RegionName); 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/"; string capsBase = "/CAPS/EQG/";
UUID EventQueueGetUUID = UUID.Zero; UUID EventQueueGetUUID = UUID.Zero;