fix: Fixes stuck connections (#1708)

This commit is contained in:
Kamron Batman 2024-04-03 08:14:41 -07:00 • committed by GitHub
parent 39215935cf
commit 183f6fa4ac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 136 additions and 120 deletions

View file

@ -134,13 +134,16 @@ public static class Firewall
_isBlockedCache.Clear();
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
private static void RemoveEntry(IFirewallEntry entry)
{
if (entry != null)
if (entry == null)
{
_firewallSet.Remove(entry);
_isBlockedCache.Clear();
return;
}
_firewallSet.Remove(entry);
_isBlockedCache.Clear();
}
private class InternalValidationEntry : BaseFirewallEntry