From 705fb2e2e1bda87d52d36ac33525ee55ed33c21f Mon Sep 17 00:00:00 2001 From: Jozef Kralik Date: Tue, 23 Jan 2024 13:43:06 +0000 Subject: [PATCH] fixup --- client/core/getDevices.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/core/getDevices.go b/client/core/getDevices.go index c6a278ee..71a0f491 100644 --- a/client/core/getDevices.go +++ b/client/core/getDevices.go @@ -98,11 +98,11 @@ func (h *discoveryHandler) Handle(ctx context.Context, conn *client.Conn, links } if len(link.ResourceTypes) == 0 { h.handler.Error(fmt.Errorf("cannot get resource types for %v: is empty", deviceID)) - return + continue } _, loaded := h.filterDiscoveredDevices.LoadOrStore(deviceID, true) if loaded { - return + continue } d := NewDevice(h.deviceCfg, deviceID, link.ResourceTypes, link.GetEndpoints) h.handler.Handle(ctx, d)