Maybe reduce incidence of ghost avatars
parent
9766dc1f81
commit
7aa171e49f
|
@ -1757,6 +1757,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||||
AuthenticateResponse sessionInfo;
|
AuthenticateResponse sessionInfo;
|
||||||
if (IsClientAuthorized(uccp, out sessionInfo))
|
if (IsClientAuthorized(uccp, out sessionInfo))
|
||||||
{
|
{
|
||||||
|
AgentCircuitData aCircuit = m_scene.AuthenticateHandler.GetAgentCircuitData(uccp.CircuitCode.Code);
|
||||||
|
|
||||||
// Begin the process of adding the client to the simulator
|
// Begin the process of adding the client to the simulator
|
||||||
client
|
client
|
||||||
= AddClient(
|
= AddClient(
|
||||||
|
@ -1766,6 +1768,14 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||||
endPoint,
|
endPoint,
|
||||||
sessionInfo);
|
sessionInfo);
|
||||||
|
|
||||||
|
// This will be true if the client is new, e.g. not
|
||||||
|
// an existing child agent, and there is no circuit data
|
||||||
|
if (client != null && aCircuit == null)
|
||||||
|
{
|
||||||
|
m_scene.CloseAgent(client.AgentId, true);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Now we know we can handle more data
|
// Now we know we can handle more data
|
||||||
Thread.Sleep(200);
|
Thread.Sleep(200);
|
||||||
|
|
||||||
|
@ -1802,7 +1812,6 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||||
// We only want to send initial data to new clients, not ones which are being converted from child to root.
|
// We only want to send initial data to new clients, not ones which are being converted from child to root.
|
||||||
if (client != null)
|
if (client != null)
|
||||||
{
|
{
|
||||||
AgentCircuitData aCircuit = m_scene.AuthenticateHandler.GetAgentCircuitData(uccp.CircuitCode.Code);
|
|
||||||
bool tp = (aCircuit.teleportFlags > 0);
|
bool tp = (aCircuit.teleportFlags > 0);
|
||||||
// Let's delay this for TP agents, otherwise the viewer doesn't know where to get resources from
|
// Let's delay this for TP agents, otherwise the viewer doesn't know where to get resources from
|
||||||
if (!tp)
|
if (!tp)
|
||||||
|
|
Loading…
Reference in New Issue