Merge pull request #5275 from BaronGreenback/upnpStartupFix

Fixes #5148

(cherry picked from commit 0beda0e32c)
Signed-off-by: Joshua M. Boniface <joshua@boniface.me>
pull/5640/head
Bond-009 4 years ago committed by Joshua M. Boniface
parent 4220808b96
commit 19ff447e51

@ -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