aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/PacketServer.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ClientStack/PacketServer.cs')
-rw-r--r--OpenSim/Region/ClientStack/PacketServer.cs12
1 files changed, 9 insertions, 3 deletions
diff --git a/OpenSim/Region/ClientStack/PacketServer.cs b/OpenSim/Region/ClientStack/PacketServer.cs
index 9608ce5..7036de93 100644
--- a/OpenSim/Region/ClientStack/PacketServer.cs
+++ b/OpenSim/Region/ClientStack/PacketServer.cs
@@ -25,6 +25,8 @@
25* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26* 26*
27*/ 27*/
28
29using System;
28using System.Net; 30using System.Net;
29using System.Net.Sockets; 31using System.Net.Sockets;
30using libsecondlife; 32using libsecondlife;
@@ -133,13 +135,17 @@ namespace OpenSim.Region.ClientStack
133 //m_scene.ClientManager.CloseAllAgents(circuitcode); 135 //m_scene.ClientManager.CloseAllAgents(circuitcode);
134 } 136 }
135 137
138 /// <summary>
139 /// Completely close down the given client.
140 /// </summary>
141 /// <param name="client"></param>
136 public virtual void CloseClient(IClientAPI client) 142 public virtual void CloseClient(IClientAPI client)
137 { 143 {
138 //m_log.Info("PacketServer:CloseClient()"); 144 m_log.Info("PacketServer:CloseClient()");
139 145
140 CloseCircuit(client.CircuitCode); 146 CloseCircuit(client.CircuitCode);
147 m_scene.ClientManager.Remove(client.CircuitCode);
141 client.Close(false); 148 client.Close(false);
142 m_scene.ClientManager.Remove(client.CircuitCode);
143 } 149 }
144 } 150 }
145} 151}