提交 cd038bf2 编写于 作者: G Gonzalo Paniagua Javier

Handle wrapped ThreadAbortException

	Third party ProcessRequest() like the one from Razor can wrap a
	ThreadAbortException originated from response.Redirect().
上级 40c3113d
......@@ -956,7 +956,13 @@ namespace System.Web
stop_processing = true;
PipelineDone ();
} catch (Exception e) {
ProcessError (e);
ThreadAbortException inner = e.InnerException as ThreadAbortException;
if (inner != null && FlagEnd.Value == inner.ExceptionState && !HttpRuntime.DomainUnloading) {
context.ClearError ();
Thread.ResetAbort ();
} else {
ProcessError (e);
}
stop_processing = true;
PipelineDone ();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册