Skip to content

Commit

Permalink
Convert collection into a new list before enumerating (#331)
Browse files Browse the repository at this point in the history
  • Loading branch information
theramis authored and StefH committed Aug 22, 2019
1 parent 19ee3c6 commit fc64c5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/WireMock.Net/Server/FluentMockServer.LogEntries.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public IEnumerable<LogEntry> FindLogEntries([NotNull] params IRequestMatcher[] m
{
var results = new Dictionary<LogEntry, RequestMatchResult>();

foreach (var log in _options.LogEntries)
foreach (var log in _options.LogEntries.ToList())
{
var requestMatchResult = new RequestMatchResult();
foreach (var matcher in matchers)
Expand Down

0 comments on commit fc64c5f

Please sign in to comment.