Fixed startup racing issue

pull/5275/head
BaronGreenback 4 years ago
parent 7acee4070e
commit c50d0dbc72

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

Loading…
Cancel
Save