Merge pull request #5275 from BaronGreenback/upnpStartupFix

Fixes #5148
This commit is contained in:
Bond-009 2021-02-21 19:59:15 +01:00 committed by GitHub
commit 0beda0e32c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -228,7 +228,10 @@ namespace Emby.Dlna.Main
{ {
try try
{ {
((DeviceDiscovery)_deviceDiscovery).Start(communicationsServer); if (communicationsServer != null)
{
((DeviceDiscovery)_deviceDiscovery).Start(communicationsServer);
}
} }
catch (Exception ex) catch (Exception ex)
{ {