diff options
| author | Bond-009 <bond.009@outlook.com> | 2021-02-21 19:59:15 +0100 |
|---|---|---|
| committer | Joshua M. Boniface <joshua@boniface.me> | 2021-02-26 21:01:50 -0500 |
| commit | 19ff447e51d90575fd9de82a0ba8a3055f1a502a (patch) | |
| tree | 39ad92293f0399eacc2797bf6c34f64f3b0c8e44 | |
| parent | 4220808b96ee82dcedd010af2a8caadec2782209 (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.cs | 5 |
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) { |
