feat(pcap): do not use closure in connection helper
1 files changed, 12 insertions(+), 2 deletions(-) M Pcap/NosSmooth.Pcap/TcpConnectionHelper.cs
M Pcap/NosSmooth.Pcap/TcpConnectionHelper.cs => Pcap/NosSmooth.Pcap/TcpConnectionHelper.cs +12 -2
@@ 39,8 39,18 @@ public static class TcpConnectionHelper foreach (var connection in tcpv4Connections) { var process = processIds.FirstOrDefault(x => x == connection.OwningPid, -1); if (process != -1) var process = (int)connection.OwningPid; var matches = false; foreach (var processId in processIds) { if (connection.OwningPid == processId) { matches = true; break; } } if (matches) { if (!result.ContainsKey(process)) {