diff options
author | UbitUmarov | 2014-09-24 20:57:23 +0100 |
---|---|---|
committer | UbitUmarov | 2014-09-24 20:57:23 +0100 |
commit | df773ee8c37d3d6c9de32d76cc0632298b30e93b (patch) | |
tree | 4d257fc8e9e248c1e5f6372bb6f6adc58987e080 /OpenSim/Server/Handlers/Simulation/AgentHandlers.cs | |
parent | coment out stack trace at newUserConnection, add log msh at createAgent (diff) | |
download | opensim-SC_OLD-df773ee8c37d3d6c9de32d76cc0632298b30e93b.zip opensim-SC_OLD-df773ee8c37d3d6c9de32d76cc0632298b30e93b.tar.gz opensim-SC_OLD-df773ee8c37d3d6c9de32d76cc0632298b30e93b.tar.bz2 opensim-SC_OLD-df773ee8c37d3d6c9de32d76cc0632298b30e93b.tar.xz |
make CreateAgent sync for logins, async for other cases
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Server/Handlers/Simulation/AgentHandlers.cs | 31 |
1 files changed, 18 insertions, 13 deletions
diff --git a/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs b/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs index 1087a71..466b6f8 100644 --- a/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs +++ b/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs | |||
@@ -387,20 +387,25 @@ namespace OpenSim.Server.Handlers.Simulation | |||
387 | protected virtual bool CreateAgent(GridRegion gatekeeper, GridRegion destination, AgentCircuitData aCircuit, uint teleportFlags, bool fromLogin, out string reason) | 387 | protected virtual bool CreateAgent(GridRegion gatekeeper, GridRegion destination, AgentCircuitData aCircuit, uint teleportFlags, bool fromLogin, out string reason) |
388 | { | 388 | { |
389 | reason = String.Empty; | 389 | reason = String.Empty; |
390 | /* | 390 | if ((teleportFlags & (uint)TeleportFlags.ViaLogin) == 0) |
391 | Util.FireAndForget(x => | ||
392 | { | 391 | { |
393 | string r; | 392 | Util.FireAndForget(x => |
394 | m_SimulationService.CreateAgent(destination, aCircuit, teleportFlags, out r); | 393 | { |
395 | 394 | string r; | |
396 | }); | 395 | m_SimulationService.CreateAgent(destination, aCircuit, teleportFlags, out r); |
397 | 396 | m_log.DebugFormat("[AGENT HANDLER]: ASYNC CreateAgent {0} {1}", r); | |
398 | return true; | 397 | }); |
399 | */ | 398 | |
400 | bool ret = m_SimulationService.CreateAgent(destination, aCircuit, teleportFlags, out reason); | 399 | return true; |
401 | m_log.DebugFormat("[AGENT HANDLER]: CreateAgent {0} {1}", ret.ToString(),reason); | 400 | } |
402 | return ret; | 401 | else |
403 | 402 | { | |
403 | |||
404 | bool ret = m_SimulationService.CreateAgent(destination, aCircuit, teleportFlags, out reason); | ||
405 | m_log.DebugFormat("[AGENT HANDLER]: SYNC CreateAgent {0} {1}", ret.ToString(), reason); | ||
406 | return ret; | ||
407 | } | ||
408 | |||
404 | } | 409 | } |
405 | } | 410 | } |
406 | 411 | ||