diff options
Diffstat (limited to '')
-rw-r--r-- | src/OpenSimClient.cs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/OpenSimClient.cs b/src/OpenSimClient.cs index 83d8599..47f6dbf 100644 --- a/src/OpenSimClient.cs +++ b/src/OpenSimClient.cs | |||
@@ -150,6 +150,18 @@ namespace OpenSim | |||
150 | Thread AssetLoaderThread = new Thread(new ThreadStart(AssetLoader)); | 150 | Thread AssetLoaderThread = new Thread(new ThreadStart(AssetLoader)); |
151 | AssetLoaderThread.Start(); | 151 | AssetLoaderThread.Start(); |
152 | break; | 152 | break; |
153 | case PacketType.LogoutRequest: | ||
154 | Console.WriteLine("OpenSimClient.cs:ProcessInPacket() - Got a logout request"); | ||
155 | OpenSim_Main.local_world.Entities.Remove(this.AgentID); | ||
156 | WebRequest DeleteSession = WebRequest.Create(OpenSim_Main.cfg.GridURL + "/usersessions/" + OpenSim_Main.cfg.GridSendKey + "/" + this.AgentID.ToString() + this.CircuitCode.ToString() + "/delete"); | ||
157 | WebResponse GridResponse = DeleteSession.GetResponse(); | ||
158 | StreamReader sr = new StreamReader(GridResponse.GetResponseStream()); | ||
159 | String grTest = sr.ReadLine(); | ||
160 | sr.Close(); | ||
161 | GridResponse.Close(); | ||
162 | |||
163 | this.ClientThread.Abort(); | ||
164 | break; | ||
153 | } | 165 | } |
154 | } | 166 | } |
155 | 167 | ||