aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2021-02-21 19:59:15 +0100
committerJoshua M. Boniface <joshua@boniface.me>2021-02-26 21:01:50 -0500
commit19ff447e51d90575fd9de82a0ba8a3055f1a502a (patch)
tree39ad92293f0399eacc2797bf6c34f64f3b0c8e44
parent4220808b96ee82dcedd010af2a8caadec2782209 (diff)
Merge pull request #5275 from BaronGreenback/upnpStartupFix
Fixes #5148 (cherry picked from commit 0beda0e32c3e80719700a708b4c9864698cd8f24) Signed-off-by: Joshua M. Boniface <joshua@boniface.me>
-rw-r--r--Emby.Dlna/Main/DlnaEntryPoint.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/Emby.Dlna/Main/DlnaEntryPoint.cs b/Emby.Dlna/Main/DlnaEntryPoint.cs
index 82490ec31..8f60c3f78 100644
--- a/Emby.Dlna/Main/DlnaEntryPoint.cs
+++ b/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)
{