minor: Stop falsely logging that a teleport was being aborted on client logout even when no teleport was active.

0.7.4-extended
Justin Clark-Casey (justincc) 2013-04-03 00:48:36 +01:00
parent f603cbec02
commit 761fe07f1e
1 changed files with 1 additions and 3 deletions

View File

@ -276,10 +276,8 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
private void OnConnectionClosed(IClientAPI client) private void OnConnectionClosed(IClientAPI client)
{ {
if (client.IsLoggingOut) if (client.IsLoggingOut && m_entityTransferStateMachine.UpdateInTransit(client.AgentId, AgentTransferState.Aborting))
{ {
m_entityTransferStateMachine.UpdateInTransit(client.AgentId, AgentTransferState.Aborting);
m_log.DebugFormat( m_log.DebugFormat(
"[ENTITY TRANSFER MODULE]: Aborted teleport request from {0} in {1} due to simultaneous logout", "[ENTITY TRANSFER MODULE]: Aborted teleport request from {0} in {1} due to simultaneous logout",
client.Name, Scene.Name); client.Name, Scene.Name);