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
  • Loading branch information
joshuaboniface authored Jun 3, 2021
2 parents 1e1e9db + 40a43f9 commit b060d9d
Showing 1 changed file with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,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 @@ -120,13 +118,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 b060d9d

Please sign in to comment.