Browse Source

Fixed startup racing issue

BaronGreenback 4 years ago
parent
commit
c50d0dbc72
1 changed files with 4 additions and 1 deletions
  1. 4 1
      Emby.Dlna/Main/DlnaEntryPoint.cs

+ 4 - 1
Emby.Dlna/Main/DlnaEntryPoint.cs

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