Skip to content

Commit 5741cfd

Browse files
committed
fix(Device::Switching): Fix not finding the device when the ID has changed
1 parent 00b8df9 commit 5741cfd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SoundSwitch.Common/Framework/Audio/Collection/DeviceReadOnlyCollection.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public IEnumerable<T> IntersectWith(IEnumerable<DeviceInfo> second)
5353
return found;
5454
}
5555

56-
if (_byId.TryGetValue(info.NameClean, out found))
56+
if (_byName.TryGetValue(info.NameClean, out found))
5757
{
5858
return found;
5959
}

0 commit comments

Comments
 (0)