The Free Software Media System - Server Backend & API
missed one.
BaronGreenback7848ea148438
diff --git a/Emby.Dlna/DlnaManager.cs b/Emby.Dlna/DlnaManager.csindex e80f1aaeed..7f8dba35fb 100644--- a/Emby.Dlna/DlnaManager.cs+++ b/Emby.Dlna/DlnaManager.cs@@ -106,28 +106,19 @@ namespace Emby.Dlnathrow new ArgumentNullException(nameof(deviceInfo));}- try- {- var profile = GetProfiles()- .FirstOrDefault(i => i.Identification != null && IsMatch(deviceInfo, i.Identification));-- if (profile != null)- {- _logger.LogDebug("Found matching device profile: {ProfileName}", profile.Name);- }- else- {- LogUnmatchedProfile(deviceInfo);- }+ var profile = GetProfiles()+ .FirstOrDefault(i => i.Identification != null && IsMatch(deviceInfo, i.Identification));- return profile;+ if (profile != null)+ {+ _logger.LogDebug("Found matching device profile: {ProfileName}", profile.Name);}- catch (ArgumentException ex)+ else{- _logger.LogError(ex, "Error in profile comparison.");+ LogUnmatchedProfile(deviceInfo);}- return null;+ return profile;}private void LogUnmatchedProfile(DeviceIdentification profile)