mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-23 06:00:47 +02:00
Merge pull request #5275 from BaronGreenback/upnpStartupFix
Fixes #5148
This commit is contained in:
commit
0beda0e32c
|
@ -227,9 +227,12 @@ namespace Emby.Dlna.Main
|
||||||
private void StartDeviceDiscovery(ISsdpCommunicationsServer communicationsServer)
|
private void StartDeviceDiscovery(ISsdpCommunicationsServer communicationsServer)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
|
{
|
||||||
|
if (communicationsServer != null)
|
||||||
{
|
{
|
||||||
((DeviceDiscovery)_deviceDiscovery).Start(communicationsServer);
|
((DeviceDiscovery)_deviceDiscovery).Start(communicationsServer);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.LogError(ex, "Error starting device discovery");
|
_logger.LogError(ex, "Error starting device discovery");
|
||||||
|
|
Loading…
Reference in a new issue