From e8148ec0bd2a1bed1df7b4a3ba7a1cbed80c84bb Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Wed, 2 Jun 2021 22:07:58 -0400 Subject: [PATCH] Merge pull request #6131 from BaronGreenback/Fix_NetworkFlooding Fix network flooding issue (cherry picked from commit b060d9d0f1b3dac523288a3aaf182f7e35cf875c) Signed-off-by: Joshua M. Boniface --- .../EntryPoints/ExternalPortForwarding.cs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/Emby.Server.Implementations/EntryPoints/ExternalPortForwarding.cs b/Emby.Server.Implementations/EntryPoints/ExternalPortForwarding.cs index 14201ead29..ad136ae494 100644 --- a/Emby.Server.Implementations/EntryPoints/ExternalPortForwarding.cs +++ b/Emby.Server.Implementations/EntryPoints/ExternalPortForwarding.cs @@ -106,8 +106,6 @@ namespace Emby.Server.Implementations.EntryPoints NatUtility.StartDiscovery(); _timer = new Timer((_) => _createdRules.Clear(), null, TimeSpan.FromMinutes(10), TimeSpan.FromMinutes(10)); - - _deviceDiscovery.DeviceDiscovered += OnDeviceDiscoveryDeviceDiscovered; } private void Stop() @@ -118,13 +116,6 @@ namespace Emby.Server.Implementations.EntryPoints NatUtility.DeviceFound -= OnNatUtilityDeviceFound; _timer?.Dispose(); - - _deviceDiscovery.DeviceDiscovered -= OnDeviceDiscoveryDeviceDiscovered; - } - - private void OnDeviceDiscoveryDeviceDiscovered(object sender, GenericEventArgs e) - { - NatUtility.Search(e.Argument.LocalIpAddress, NatProtocol.Upnp); } private async void OnNatUtilityDeviceFound(object sender, DeviceEventArgs e)