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

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

Loading…
Cancel
Save