Go easy on enforcing session ids in position updates
parent
dbd773e89e
commit
7e01213bf2
|
@ -4267,8 +4267,11 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
ScenePresence childAgentUpdate = GetScenePresence(cAgentData.AgentID);
|
||||
if (childAgentUpdate != null)
|
||||
{
|
||||
if (childAgentUpdate.ControllingClient.SessionId == cAgentData.SessionID)
|
||||
{
|
||||
if (childAgentUpdate.ControllingClient.SessionId != cAgentData.SessionID)
|
||||
// Only warn for now
|
||||
m_log.WarnFormat("[SCENE]: Attempt at updating position of agent {0} with invalid session id {1}. Neighbor running older version?",
|
||||
childAgentUpdate.UUID, cAgentData.SessionID);
|
||||
|
||||
// I can't imagine *yet* why we would get an update if the agent is a root agent..
|
||||
// however to avoid a race condition crossing borders..
|
||||
if (childAgentUpdate.IsChildAgent)
|
||||
|
@ -4282,9 +4285,7 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
// Not Implemented:
|
||||
//TODO: Do we need to pass the message on to one of our neighbors?
|
||||
}
|
||||
}
|
||||
else
|
||||
m_log.WarnFormat("[SCENE]: Attempt at updating position of agent {0} with invalid session id {1}", childAgentUpdate.UUID, cAgentData.SessionID);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue