aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Services/HypergridService
diff options
context:
space:
mode:
authorBlueWall2011-06-01 16:57:01 -0400
committerBlueWall2011-06-01 16:57:01 -0400
commit4b9e446c6267a1161263d885699e72c97e8a94eb (patch)
treef952fda03839544e0d5de41af404b4e822f6fdc7 /OpenSim/Services/HypergridService
parentAdd alternate region handling for url based logins as found in login to "home... (diff)
downloadopensim-SC-4b9e446c6267a1161263d885699e72c97e8a94eb.zip
opensim-SC-4b9e446c6267a1161263d885699e72c97e8a94eb.tar.gz
opensim-SC-4b9e446c6267a1161263d885699e72c97e8a94eb.tar.bz2
opensim-SC-4b9e446c6267a1161263d885699e72c97e8a94eb.tar.xz
Use current TravelingAgent if 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
Diffstat (limited to 'OpenSim/Services/HypergridService')
-rw-r--r--OpenSim/Services/HypergridService/UserAgentService.cs7
1 files changed, 5 insertions, 2 deletions
diff --git a/OpenSim/Services/HypergridService/UserAgentService.cs b/OpenSim/Services/HypergridService/UserAgentService.cs
index 387547e..2f2ebfb 100644
--- a/OpenSim/Services/HypergridService/UserAgentService.cs
+++ b/OpenSim/Services/HypergridService/UserAgentService.cs
@@ -197,8 +197,11 @@ namespace OpenSim.Services.HypergridService
197 agentCircuit.firstname, agentCircuit.lastname, region.ServerURI, reason); 197 agentCircuit.firstname, agentCircuit.lastname, region.ServerURI, reason);
198 198
199 // restore the old travel info 199 // restore the old travel info
200 lock (m_TravelingAgents) 200 if(reason != "Logins Disabled")
201 m_TravelingAgents[agentCircuit.SessionID] = old; 201 {
202 lock (m_TravelingAgents)
203 m_TravelingAgents[agentCircuit.SessionID] = old;
204 }
202 205
203 return false; 206 return false;
204 } 207 }