make CreateAgent sync for logins, async for other cases
parent
c9079360b9
commit
df773ee8c3
|
@ -387,19 +387,24 @@ namespace OpenSim.Server.Handlers.Simulation
|
|||
protected virtual bool CreateAgent(GridRegion gatekeeper, GridRegion destination, AgentCircuitData aCircuit, uint teleportFlags, bool fromLogin, out string reason)
|
||||
{
|
||||
reason = String.Empty;
|
||||
/*
|
||||
if ((teleportFlags & (uint)TeleportFlags.ViaLogin) == 0)
|
||||
{
|
||||
Util.FireAndForget(x =>
|
||||
{
|
||||
string r;
|
||||
m_SimulationService.CreateAgent(destination, aCircuit, teleportFlags, out r);
|
||||
|
||||
m_log.DebugFormat("[AGENT HANDLER]: ASYNC CreateAgent {0} {1}", r);
|
||||
});
|
||||
|
||||
return true;
|
||||
*/
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
bool ret = m_SimulationService.CreateAgent(destination, aCircuit, teleportFlags, out reason);
|
||||
m_log.DebugFormat("[AGENT HANDLER]: CreateAgent {0} {1}", ret.ToString(),reason);
|
||||
m_log.DebugFormat("[AGENT HANDLER]: SYNC CreateAgent {0} {1}", ret.ToString(), reason);
|
||||
return ret;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue