update sat/ip

This commit is contained in:
Luke Pulverenti
2016-03-31 15:22:07 -04:00
parent d5b7ed325e
commit e13fcb3cd4
3 changed files with 86 additions and 109 deletions

View File

@@ -31,20 +31,26 @@ namespace MediaBrowser.Server.Implementations.EntryPoints
_appHost = appHost;
_config = config;
_ssdp = ssdp;
_config.ConfigurationUpdated += _config_ConfigurationUpdated;
}
private void _config_ConfigurationUpdated(object sender, EventArgs e)
{
}
public void Run()
{
//NatUtility.Logger = new LogWriter(_logger);
if (_config.Configuration.EnableUPnP)
{
Discover();
}
Discover();
}
private async void Discover()
{
if (!_config.Configuration.EnableUPnP)
{
return;
}
var discoverer = new NatDiscoverer();
var cancellationTokenSource = new CancellationTokenSource(10000);