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

user_profiles
Justin Clark-Casey (justincc) 2013-04-03 00:48:36 +01:00
parent 7bf1986e91
commit 94d44142e3
1 changed files with 1 additions and 3 deletions

View File

@ -280,10 +280,8 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
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(
"[ENTITY TRANSFER MODULE]: Aborted teleport request from {0} in {1} due to simultaneous logout",
client.Name, Scene.Name);