Dont' bother with a userAgentService != null check right after we've constructed it

iar_mods
Justin Clark-Casey (justincc) 2011-11-15 20:37:49 +00:00
parent 828e4a5b09
commit 94b1c16398
1 changed files with 10 additions and 11 deletions

View File

@ -335,13 +335,13 @@ namespace OpenSim.Services.HypergridService
}
if (userURL == m_ExternalName)
{
return m_UserAgentService.VerifyAgent(aCircuit.SessionID, aCircuit.ServiceSessionID);
}
else
{
// Object[] args = new Object[] { userURL };
IUserAgentService userAgentService = new UserAgentServiceConnector(userURL);
if (userAgentService != null)
{
try
{
return userAgentService.VerifyAgent(aCircuit.SessionID, aCircuit.ServiceSessionID);
@ -352,7 +352,6 @@ namespace OpenSim.Services.HypergridService
return false;
}
}
}
return false;
}