diff options
| author | Bond-009 <bond.009@outlook.com> | 2021-02-21 19:59:15 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-21 19:59:15 +0100 |
| commit | 0beda0e32c3e80719700a708b4c9864698cd8f24 (patch) | |
| tree | 9731d28437ff197860162c10c670844814afc846 | |
| parent | 0d3606a7466d55d217e1dffc0539cfa1c189eb7d (diff) | |
| parent | c50d0dbc7236df06b8d438d6c7c404e04c73b56b (diff) | |
Merge pull request #5275 from BaronGreenback/upnpStartupFix
Fixes #5148
| -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) { |
