MindscapeHQ / raygun4net

Raygun provider for .NET
https://raygun.com
MIT License
125 stars 91 forks source link

Fix Lock recursion #514

Closed xenolightning closed 9 months ago

xenolightning commented 9 months ago

This addresses the Lock Recursion exception raised in #513

Don't try to clean up the handlers in the invocation.

Instead move all the logic to the add method.

This is slightly less optimal on the memory, but makes managing the locks across threads much simpler and less error prone.

The test was created and was able to reproduce the issue in 9.0.0, the "broken" test now passes.