From 5741cfdbfbf2f216b0129efe26fe81465f03c332 Mon Sep 17 00:00:00 2001 From: Antoine Aflalo Date: Tue, 24 Aug 2021 14:59:24 -0400 Subject: [PATCH] fix(Device::Switching): Fix not finding the device when the ID has changed --- .../Framework/Audio/Collection/DeviceReadOnlyCollection.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SoundSwitch.Common/Framework/Audio/Collection/DeviceReadOnlyCollection.cs b/SoundSwitch.Common/Framework/Audio/Collection/DeviceReadOnlyCollection.cs index 355b785966..3e67b2d99b 100644 --- a/SoundSwitch.Common/Framework/Audio/Collection/DeviceReadOnlyCollection.cs +++ b/SoundSwitch.Common/Framework/Audio/Collection/DeviceReadOnlyCollection.cs @@ -53,7 +53,7 @@ public IEnumerable IntersectWith(IEnumerable second) return found; } - if (_byId.TryGetValue(info.NameClean, out found)) + if (_byName.TryGetValue(info.NameClean, out found)) { return found; }