Skip to content

Commit 53347cb

Browse files
committed
API.RESTful fixed when parallel ThreadAbortException is raised by parallel thread
1 parent 184c0fc commit 53347cb

File tree

5 files changed

+5
-0
lines changed

5 files changed

+5
-0
lines changed

rls/API.Library.dll

0 Bytes
Binary file not shown.

rls/API.Library.pdb

0 Bytes
Binary file not shown.

src/API.Library/Entities/API.RESTful.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,11 @@ public void ProcessRequest(HttpContext context)
103103
}
104104

105105
}
106+
catch (ThreadAbortException e)
107+
{
108+
// Thread aborted, do nothing
109+
// The finally block will take care of everything safely
110+
}
106111
catch (Exception e)
107112
{
108113
Log.Instance.Fatal(e);
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)