diff options
Merge branch 'ubitwork' of ssh://3dhosting.de/var/git/careminster into ubitwork
Diffstat (limited to 'OpenSim/Framework/Servers/HttpServer/PollServiceRequestManager.cs')
-rw-r--r-- | OpenSim/Framework/Servers/HttpServer/PollServiceRequestManager.cs | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/OpenSim/Framework/Servers/HttpServer/PollServiceRequestManager.cs b/OpenSim/Framework/Servers/HttpServer/PollServiceRequestManager.cs index c234537..c379747 100644 --- a/OpenSim/Framework/Servers/HttpServer/PollServiceRequestManager.cs +++ b/OpenSim/Framework/Servers/HttpServer/PollServiceRequestManager.cs | |||
@@ -278,15 +278,7 @@ namespace OpenSim.Framework.Servers.HttpServer | |||
278 | Thread.Sleep(1000); // let the world move | 278 | Thread.Sleep(1000); // let the world move |
279 | 279 | ||
280 | foreach (Thread t in m_workerThreads) | 280 | foreach (Thread t in m_workerThreads) |
281 | { | 281 | Watchdog.AbortThread(t.ManagedThreadId); |
282 | try | ||
283 | { | ||
284 | t.Abort(); | ||
285 | } | ||
286 | catch | ||
287 | { | ||
288 | } | ||
289 | } | ||
290 | 282 | ||
291 | try | 283 | try |
292 | { | 284 | { |
@@ -345,10 +337,11 @@ namespace OpenSim.Framework.Servers.HttpServer | |||
345 | if (req.PollServiceArgs.HasEvents(req.RequestID, req.PollServiceArgs.Id)) | 337 | if (req.PollServiceArgs.HasEvents(req.RequestID, req.PollServiceArgs.Id)) |
346 | { | 338 | { |
347 | string strreq = ""; | 339 | string strreq = ""; |
348 | if (req.PollServiceArgs.GetEventsNeedsRequest) | 340 | if (req.PollServiceArgs.GetEventsNeedsRequestBody) |
349 | { | 341 | { |
350 | try | 342 | try |
351 | { | 343 | { |
344 | // should we try to seek back? fear we can't | ||
352 | str = new StreamReader(req.Request.Body); | 345 | str = new StreamReader(req.Request.Body); |
353 | strreq = str.ReadToEnd(); | 346 | strreq = str.ReadToEnd(); |
354 | str.Close(); | 347 | str.Close(); |