Skip to content

Commit

Permalink
Don't iterate over mutable list
Browse files Browse the repository at this point in the history
  • Loading branch information
tmct authored Jan 30, 2025
1 parent 725c296 commit cd60722
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/log4net/Util/AppenderAttachedImpl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ public AppenderCollection Appenders
{
if (_appenderList is not null && name is not null)
{
foreach (IAppender appender in _appenderList)
foreach (IAppender appender in _appenderList.ToArray())
{
if (name == appender.Name)
{
Expand Down

0 comments on commit cd60722

Please sign in to comment.