|
|
@ -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");
|
|
|
|