Comment out the warning if the prioritizer runs without a fully

initialized scene presence. Not sure why we are dumping updates
to a client that isn't there yet...
bulletsim
Mic Bowman 2011-04-13 21:01:51 -07:00
parent c5465414b6
commit 6ed6b46aad
1 changed files with 5 additions and 1 deletions

View File

@ -166,7 +166,11 @@ namespace OpenSim.Region.Framework.Scenes
ScenePresence presence = m_scene.GetScenePresence(client.AgentId); ScenePresence presence = m_scene.GetScenePresence(client.AgentId);
if (presence == null) if (presence == null)
{ {
m_log.WarnFormat("[PRIORITIZER] attempt to use agent {0} not in the scene",client.AgentId); // this shouldn't happen, it basically means that we are prioritizing
// updates to send to a client that doesn't have a presence in the scene
// seems like there's race condition here...
// m_log.WarnFormat("[PRIORITIZER] attempt to use agent {0} not in the scene",client.AgentId);
// throw new InvalidOperationException("Prioritization agent not defined"); // throw new InvalidOperationException("Prioritization agent not defined");
return Int32.MaxValue; return Int32.MaxValue;
} }