From 0a2d399cad41f82a3f2ac53b84d5ec3c669eb01b Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Wed, 4 Jun 2008 01:25:31 +0000 Subject: [PATCH] * If a ThreadAbortException reaches AuthUser() then let it pass through unmolested * These are only thrown on client shutdown anyway * This stops the console (harmlessly) spewing stack traces when a client logs off --- OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs index 7203bff82e..230fe3cefd 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs @@ -725,6 +725,10 @@ namespace OpenSim.Region.ClientStack.LindenUDP } catch (Exception e) { + // ThreadAbortExceptions need to go through unmolested. + if (e is ThreadAbortException) + throw e; + // Don't let a failure in an individual client thread crash the whole sim. // FIXME: could do more sophisticated cleanup since leaving client resources around may // cause instability for the region server over time.