Merge pull request #5275 from BaronGreenback/upnpStartupFix

Fixes #5148
pull/5286/head
Bond-009 3 years ago committed by GitHub
commit 0beda0e32c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -227,9 +227,12 @@ namespace Emby.Dlna.Main
private void StartDeviceDiscovery(ISsdpCommunicationsServer communicationsServer) private void StartDeviceDiscovery(ISsdpCommunicationsServer communicationsServer)
{ {
try try
{
if (communicationsServer != null)
{ {
((DeviceDiscovery)_deviceDiscovery).Start(communicationsServer); ((DeviceDiscovery)_deviceDiscovery).Start(communicationsServer);
} }
}
catch (Exception ex) catch (Exception ex)
{ {
_logger.LogError(ex, "Error starting device discovery"); _logger.LogError(ex, "Error starting device discovery");

Loading…
Cancel
Save