aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBaronGreenback <jimcartlidge@yahoo.co.uk>2021-02-20 23:06:48 +0000
committerBaronGreenback <jimcartlidge@yahoo.co.uk>2021-02-20 23:06:48 +0000
commitc50d0dbc7236df06b8d438d6c7c404e04c73b56b (patch)
treeeab288baaf6a28d77d0cc917278c21ba747ad587
parent7acee4070e425b9060faa893d61a5e2d2f387bfc (diff)
Fixed startup racing issue
-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 3f7b558f6..6205ba6cb 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)
{