From c50d0dbc7236df06b8d438d6c7c404e04c73b56b Mon Sep 17 00:00:00 2001 From: BaronGreenback Date: Sat, 20 Feb 2021 23:06:48 +0000 Subject: [PATCH] Fixed startup racing issue --- Emby.Dlna/Main/DlnaEntryPoint.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Emby.Dlna/Main/DlnaEntryPoint.cs b/Emby.Dlna/Main/DlnaEntryPoint.cs index 3f7b558f61..6205ba6cb6 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) {