From f1fac8cea94b39b0b74fb85d1cb96a578d738df9 Mon Sep 17 00:00:00 2001 From: Santiago Lo Coco Date: Sun, 10 Nov 2024 21:58:12 +0100 Subject: [PATCH] Fix bugs --- Assets/Scripts/ServiceDiscovery.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Assets/Scripts/ServiceDiscovery.cs b/Assets/Scripts/ServiceDiscovery.cs index e0e814b..6c330b3 100644 --- a/Assets/Scripts/ServiceDiscovery.cs +++ b/Assets/Scripts/ServiceDiscovery.cs @@ -346,6 +346,10 @@ public class ServiceDiscovery : MonoBehaviour while (serviceQueue.Count > 0) { MdnsService service = serviceQueue.Dequeue(); + if (service == null) + { + continue; + } Debug.Log($"Invoking action with: {service}"); action?.Invoke(service); }