-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix : LogManager.ReconfigureExistingLoggers() could throw InvalidOperationException #2131
Conversation
…rmittently throws InvalidOperationException on Travis/Mono.
Codecov Report
@@ Coverage Diff @@
## master #2131 +/- ##
=======================================
- Coverage 81% 81% -<1%
=======================================
Files 291 291
Lines 20103 20104 +1
Branches 2384 2384
=======================================
- Hits 16342 16329 -13
- Misses 3150 3163 +13
- Partials 611 612 +1 |
Alternative one could change this method:
|
Thanks! @snakefoot I think this is also OK. Thanks for the suggestion. |
Then one might consider changing:
Into:
And if being super picky, then one could perform reverse-iteration, and use RemoveAt for WeakReference no longer active. |
@snakefoot PR would be nice;) |
…tently throws InvalidOperationException on Travis/Mono.
fixes #2130