aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ClientStack')
-rw-r--r--OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs12
-rw-r--r--OpenSim/Region/ClientStack/PacketServer.cs8
2 files changed, 13 insertions, 7 deletions
diff --git a/OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs b/OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs
index 009ddac..3bb7c03 100644
--- a/OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs
+++ b/OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs
@@ -677,5 +677,17 @@ namespace OpenSim.Region.ClientStack
677 shape.TextureEntry = ntex.ToBytes(); 677 shape.TextureEntry = ntex.ToBytes();
678 return shape; 678 return shape;
679 } 679 }
680
681 public void SendLogoutPacket()
682 {
683 LogoutReplyPacket logReply = new LogoutReplyPacket();
684 logReply.AgentData.AgentID = AgentId;
685 logReply.AgentData.SessionID = SessionId;
686 logReply.InventoryData = new LogoutReplyPacket.InventoryDataBlock[1];
687 logReply.InventoryData[0] = new LogoutReplyPacket.InventoryDataBlock();
688 logReply.InventoryData[0].ItemID = LLUUID.Zero;
689
690 OutPacket(logReply);
691 }
680 } 692 }
681} 693}
diff --git a/OpenSim/Region/ClientStack/PacketServer.cs b/OpenSim/Region/ClientStack/PacketServer.cs
index 28f25bd..3b26a59 100644
--- a/OpenSim/Region/ClientStack/PacketServer.cs
+++ b/OpenSim/Region/ClientStack/PacketServer.cs
@@ -149,13 +149,7 @@ namespace OpenSim.Region.ClientStack
149 149
150 public void LogoutHandler(IClientAPI client) 150 public void LogoutHandler(IClientAPI client)
151 { 151 {
152 LogoutReplyPacket logReply = new LogoutReplyPacket(); 152 client.SendLogoutPacket();
153 logReply.AgentData.AgentID = client.AgentId;
154 logReply.AgentData.SessionID = client.SessionId;
155 logReply.InventoryData = new LogoutReplyPacket.InventoryDataBlock[1];
156 logReply.InventoryData[0] = new LogoutReplyPacket.InventoryDataBlock();
157 logReply.InventoryData[0].ItemID = LLUUID.Zero;
158 client.OutPacket(logReply);
159 153
160 CloseClient( client ); 154 CloseClient( client );
161 } 155 }