Skip to content

Commit

Permalink
fix: fix duplicate URI detection during MDNS discovery
Browse files Browse the repository at this point in the history
  • Loading branch information
JKRhb committed Oct 29, 2023
1 parent d0bf7ad commit 08548b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/core/thing_discovery.dart
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ class ThingDiscovery extends Stream<ThingDescription>
scheme: txtRecords['scheme'] ?? defaultScheme,
);

final duplicate = discoveredUris.add(uri);
final duplicate = !discoveredUris.add(uri);

if (duplicate) {
continue;
Expand Down

0 comments on commit 08548b9

Please sign in to comment.