Skip to content

Commit

Permalink
Merge pull request jellyfin#6131 from BaronGreenback/Fix_NetworkFlooding
Browse files Browse the repository at this point in the history
Fix network flooding issue

(cherry picked from commit b060d9d)
Signed-off-by: Joshua M. Boniface <joshua@boniface.me>
  • Loading branch information
joshuaboniface committed Jun 3, 2021
1 parent 77c5c53 commit e8148ec
Showing 1 changed file with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,6 @@ private void Start()
NatUtility.StartDiscovery();

_timer = new Timer((_) => _createdRules.Clear(), null, TimeSpan.FromMinutes(10), TimeSpan.FromMinutes(10));

_deviceDiscovery.DeviceDiscovered += OnDeviceDiscoveryDeviceDiscovered;
}

private void Stop()
Expand All @@ -118,13 +116,6 @@ private void Stop()
NatUtility.DeviceFound -= OnNatUtilityDeviceFound;

_timer?.Dispose();

_deviceDiscovery.DeviceDiscovered -= OnDeviceDiscoveryDeviceDiscovered;
}

private void OnDeviceDiscoveryDeviceDiscovered(object sender, GenericEventArgs<UpnpDeviceInfo> e)
{
NatUtility.Search(e.Argument.LocalIpAddress, NatProtocol.Upnp);
}

private async void OnNatUtilityDeviceFound(object sender, DeviceEventArgs e)
Expand Down

0 comments on commit e8148ec

Please sign in to comment.