diff --git a/vrc-oscquery-lib/Zeroconf/MeaModDiscovery.cs b/vrc-oscquery-lib/Zeroconf/MeaModDiscovery.cs index b2bd4e2..10c2cea 100644 --- a/vrc-oscquery-lib/Zeroconf/MeaModDiscovery.cs +++ b/vrc-oscquery-lib/Zeroconf/MeaModDiscovery.cs @@ -162,7 +162,7 @@ private void AddMatchedService(Message response, SRVRecord srvRecord) OSCQueryServiceProfile p = null; lock (_oscServices) { - if (_oscServices.All(p => p.name != profile.InstanceName)) + if (_oscServices.All(existing => existing.name != profile.InstanceName)) { p = new OSCQueryServiceProfile(instanceName, ipAddressList.First(), port, OSCQueryServiceProfile.ServiceType.OSC); _oscServices.Add(p); @@ -180,7 +180,7 @@ private void AddMatchedService(Message response, SRVRecord srvRecord) OSCQueryServiceProfile p = null; lock (_oscQueryServices) { - if (_oscQueryServices.All(p => !p.name.Equals(profile.InstanceName))) + if (_oscQueryServices.All(existing => !existing.name.Equals(profile.InstanceName))) { p = new OSCQueryServiceProfile(instanceName, ipAddressList.First(), port, OSCQueryServiceProfile.ServiceType.OSCQuery); _oscQueryServices.Add(p);