Skip to content

Commit d5bd9e8

Browse files
committed
fix(Device): Rely completely on the name of the device for it's uniqueness in the selection of devices.
1 parent 78c362c commit d5bd9e8

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

SoundSwitch.Common/Framework/Audio/Device/DeviceInfo.cs

-2
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,7 @@ public override int GetHashCode()
105105
unchecked
106106
{
107107
var hashCode = (NameClean != null ? NameClean.GetHashCode() : 0);
108-
hashCode = (hashCode * 397) ^ (Id != null ? Id.GetHashCode() : 0);
109108
hashCode = (hashCode * 397) ^ (int) Type;
110-
hashCode = (hashCode * 397) ^ IsUsb.GetHashCode();
111109
return hashCode;
112110
}
113111
}

0 commit comments

Comments
 (0)