diff options
Diffstat (limited to 'OpenSim/Region/ClientStack/PacketServer.cs')
-rw-r--r-- | OpenSim/Region/ClientStack/PacketServer.cs | 12 |
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 | |||
29 | using System; | ||
28 | using System.Net; | 30 | using System.Net; |
29 | using System.Net.Sockets; | 31 | using System.Net.Sockets; |
30 | using libsecondlife; | 32 | using 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 | } |