Squelch red ink for login cancel by the user during circuit setup

melanie
Melanie Thielker 2017-01-07 00:35:09 +00:00
parent e81b3d8f0c
commit ff945867a3
2 changed files with 22 additions and 3 deletions

View File

@ -1118,7 +1118,18 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
SceneObjectGroup objatt; SceneObjectGroup objatt;
UUID rezGroupID = sp.ControllingClient.ActiveGroupId; UUID rezGroupID;
// This will fail if the user aborts login. sp will exist
// but ControllintClient will be null.
try
{
rezGroupID = sp.ControllingClient.ActiveGroupId;
}
catch
{
return null;
}
if (itemID != UUID.Zero) if (itemID != UUID.Zero)
objatt = m_invAccessModule.RezObject(sp.ControllingClient, objatt = m_invAccessModule.RezObject(sp.ControllingClient,

View File

@ -1999,8 +1999,16 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
IClientAPI spClient = sp.ControllingClient; IClientAPI spClient = sp.ControllingClient;
// This will fail if the user aborts login
try
{
if (!seeds.ContainsKey(currentRegionHandler)) if (!seeds.ContainsKey(currentRegionHandler))
seeds.Add(currentRegionHandler, spClient.RequestClientInfo().CapsPath); seeds.Add(currentRegionHandler, spClient.RequestClientInfo().CapsPath);
}
catch
{
return;
}
AgentCircuitData currentAgentCircuit = AgentCircuitData currentAgentCircuit =
spScene.AuthenticateHandler.GetAgentCircuitData(sp.ControllingClient.CircuitCode); spScene.AuthenticateHandler.GetAgentCircuitData(sp.ControllingClient.CircuitCode);