Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions vrc-oscquery-lib/Zeroconf/MeaModDiscovery.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using MeaMod.DNS.Model;
Expand Down Expand Up @@ -156,7 +156,7 @@ private void AddMatchedService(Message response, SRVRecord srvRecord)
else if (string.Compare(serviceName, OSCQueryService._localOscJsonServiceName, StringComparison.Ordinal) == 0 && !_profiles.ContainsValue(profile))
{
// Make sure there's not already a service with the same name
if (_oscQueryServices.All(p => !p.name.Equals(profile.InstanceName)))
if (_oscQueryServices.All(p => p.name != profile.InstanceName))
{
var p = new OSCQueryServiceProfile(instanceName, ipAddressList.First(), port, OSCQueryServiceProfile.ServiceType.OSCQuery);
_oscQueryServices.Add(p);
Expand Down