summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/DotNetOpenAuth.Test/CoordinatorBase.cs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/DotNetOpenAuth.Test/CoordinatorBase.cs b/src/DotNetOpenAuth.Test/CoordinatorBase.cs
index fdb2991..11172b7 100644
--- a/src/DotNetOpenAuth.Test/CoordinatorBase.cs
+++ b/src/DotNetOpenAuth.Test/CoordinatorBase.cs
@@ -67,6 +67,15 @@ namespace DotNetOpenAuth.Test {
party1Thread.Abort();
party2Thread.Abort();
throw;
+ } catch (ThreadStartException ex) {
+ if (ex.InnerException is ThreadAbortException) {
+ // if party1Thread threw an exception
+ // (which may even have been intentional for the test)
+ // before party2Thread even started, then this exception
+ // can be thrown, and should be ignored.
+ } else {
+ throw;
+ }
}
// Use the failing reason of a failing sub-thread as our reason, if anything failed.