diff options
Diffstat (limited to 'OpenSim/Region/ClientStack')
-rw-r--r-- | OpenSim/Region/ClientStack/ClientView.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/OpenSim/Region/ClientStack/ClientView.cs b/OpenSim/Region/ClientStack/ClientView.cs index adb6b72..750226d 100644 --- a/OpenSim/Region/ClientStack/ClientView.cs +++ b/OpenSim/Region/ClientStack/ClientView.cs | |||
@@ -206,6 +206,8 @@ namespace OpenSim.Region.ClientStack | |||
206 | public void Close() | 206 | public void Close() |
207 | { | 207 | { |
208 | // Pull Client out of Region | 208 | // Pull Client out of Region |
209 | MainLog.Instance.Verbose("CLIENT", "Close has been called"); | ||
210 | |||
209 | m_scene.RemoveClient(AgentId); | 211 | m_scene.RemoveClient(AgentId); |
210 | 212 | ||
211 | // Send the STOP packet | 213 | // Send the STOP packet |
@@ -215,6 +217,8 @@ namespace OpenSim.Region.ClientStack | |||
215 | // FLUSH Packets | 217 | // FLUSH Packets |
216 | PacketQueue.Close(); | 218 | PacketQueue.Close(); |
217 | PacketQueue.Flush(); | 219 | PacketQueue.Flush(); |
220 | |||
221 | Thread.Sleep(2000); | ||
218 | 222 | ||
219 | // Shut down timers | 223 | // Shut down timers |
220 | AckTimer.Stop(); | 224 | AckTimer.Stop(); |
@@ -223,7 +227,6 @@ namespace OpenSim.Region.ClientStack | |||
223 | // This is just to give the client a reasonable chance of | 227 | // This is just to give the client a reasonable chance of |
224 | // flushing out all it's packets. There should probably | 228 | // flushing out all it's packets. There should probably |
225 | // be a better mechanism here | 229 | // be a better mechanism here |
226 | Thread.Sleep(2000); | ||
227 | 230 | ||
228 | ClientThread.Abort(); | 231 | ClientThread.Abort(); |
229 | } | 232 | } |