From 706c04899a384c3ea6db490d7f6511b65b62a51f Mon Sep 17 00:00:00 2001 From: Momo the Monster Date: Fri, 26 Jun 2026 18:41:32 -0700 Subject: [PATCH] Fix net462 build: rename lambda param shadowing outer local in MeaModDiscovery Fixes #67 --- vrc-oscquery-lib/Zeroconf/MeaModDiscovery.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);