Browse Source

Merge pull request #5275 from BaronGreenback/upnpStartupFix

Fixes #5148
Bond-009 4 years ago
parent
commit
0beda0e32c
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)
             {