~ruther/NosSmooth

933817752806f78c4dc59ee7041610ba8052874a — František Boháček 2 years ago e8ca380 feat/pcap-sending
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))
                {

Do not follow this link