Convert collection into a new list before enumerating (#331)

This commit is contained in:
Simar
2019-08-23 05:58:53 +12:00
committed by Stef Heyenrath
parent 19ee3c6681
commit fc64c5f925

View File

@@ -39,7 +39,7 @@ namespace WireMock.Server
{
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)