* Moved SendLogoutPacket back to IClientAPI.
parent
f71b315592
commit
3f6b3f6b59
|
@ -254,5 +254,6 @@ namespace OpenSim.Framework.Interfaces
|
|||
event ViewerEffectEventHandler OnViewerEffect;
|
||||
event Action<IClientAPI> OnLogout;
|
||||
event Action<IClientAPI> OnConnectionClosed;
|
||||
void SendLogoutPacket();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -677,5 +677,17 @@ namespace OpenSim.Region.ClientStack
|
|||
shape.TextureEntry = ntex.ToBytes();
|
||||
return shape;
|
||||
}
|
||||
|
||||
public void SendLogoutPacket()
|
||||
{
|
||||
LogoutReplyPacket logReply = new LogoutReplyPacket();
|
||||
logReply.AgentData.AgentID = AgentId;
|
||||
logReply.AgentData.SessionID = SessionId;
|
||||
logReply.InventoryData = new LogoutReplyPacket.InventoryDataBlock[1];
|
||||
logReply.InventoryData[0] = new LogoutReplyPacket.InventoryDataBlock();
|
||||
logReply.InventoryData[0].ItemID = LLUUID.Zero;
|
||||
|
||||
OutPacket(logReply);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -149,13 +149,7 @@ namespace OpenSim.Region.ClientStack
|
|||
|
||||
public void LogoutHandler(IClientAPI client)
|
||||
{
|
||||
LogoutReplyPacket logReply = new LogoutReplyPacket();
|
||||
logReply.AgentData.AgentID = client.AgentId;
|
||||
logReply.AgentData.SessionID = client.SessionId;
|
||||
logReply.InventoryData = new LogoutReplyPacket.InventoryDataBlock[1];
|
||||
logReply.InventoryData[0] = new LogoutReplyPacket.InventoryDataBlock();
|
||||
logReply.InventoryData[0].ItemID = LLUUID.Zero;
|
||||
client.OutPacket(logReply);
|
||||
client.SendLogoutPacket();
|
||||
|
||||
CloseClient( client );
|
||||
}
|
||||
|
|
|
@ -8,6 +8,7 @@ using OpenSim.Framework.Interfaces;
|
|||
using OpenSim.Framework.Types;
|
||||
using OpenSim.Framework.Utilities;
|
||||
using OpenSim.Region.Environment.Scenes;
|
||||
using System;
|
||||
|
||||
namespace SimpleApp
|
||||
{
|
||||
|
@ -20,6 +21,9 @@ namespace SimpleApp
|
|||
|
||||
#pragma warning disable 67
|
||||
|
||||
public event Action<IClientAPI> OnLogout;
|
||||
public event Action<IClientAPI> OnConnectionClosed;
|
||||
|
||||
public event ImprovedInstantMessage OnInstantMessage;
|
||||
public event ChatFromViewer OnChatFromViewer;
|
||||
public event RezObject OnRezObject;
|
||||
|
@ -246,8 +250,8 @@ namespace SimpleApp
|
|||
}
|
||||
}
|
||||
|
||||
public event System.Action<IClientAPI> OnLogout;
|
||||
|
||||
public event System.Action<IClientAPI> OnConnectionClosed;
|
||||
public void SendLogoutPacket()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue