From 08548b9f09bfe896a3e10e0d84c4e769fd755315 Mon Sep 17 00:00:00 2001 From: Jan Romann Date: Sun, 29 Oct 2023 10:06:05 +0100 Subject: [PATCH] fix: fix duplicate URI detection during MDNS discovery --- lib/src/core/thing_discovery.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/core/thing_discovery.dart b/lib/src/core/thing_discovery.dart index e0499036..90ae3c94 100644 --- a/lib/src/core/thing_discovery.dart +++ b/lib/src/core/thing_discovery.dart @@ -298,7 +298,7 @@ class ThingDiscovery extends Stream scheme: txtRecords['scheme'] ?? defaultScheme, ); - final duplicate = discoveredUris.add(uri); + final duplicate = !discoveredUris.add(uri); if (duplicate) { continue;