Fixed startup racing issue

This commit is contained in:
BaronGreenback 2021-02-20 23:06:48 +00:00
parent 7acee4070e
commit c50d0dbc72

View file

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