Re-Apply Use current TravelingAgent if the the login failure reason is "Logins Disabled" to fix NullReferenceException, allowing agent to login to fallback region when logins are disabled by "StartDisabled = true" or when logins are disabled by RegionReady""
This reverts commit 0a430bbffb
.
bulletsim
parent
0a430bbffb
commit
777f57d946
|
@ -197,8 +197,11 @@ namespace OpenSim.Services.HypergridService
|
||||||
agentCircuit.firstname, agentCircuit.lastname, region.ServerURI, reason);
|
agentCircuit.firstname, agentCircuit.lastname, region.ServerURI, reason);
|
||||||
|
|
||||||
// restore the old travel info
|
// restore the old travel info
|
||||||
|
if(reason != "Logins Disabled")
|
||||||
|
{
|
||||||
lock (m_TravelingAgents)
|
lock (m_TravelingAgents)
|
||||||
m_TravelingAgents[agentCircuit.SessionID] = old;
|
m_TravelingAgents[agentCircuit.SessionID] = old;
|
||||||
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue