Skip to content

Commit

Permalink
Merge pull request #62 from namib-project/mdns-fix
Browse files Browse the repository at this point in the history
fix: fix duplicate URI detection during MDNS discovery
  • Loading branch information
JKRhb authored Oct 29, 2023
2 parents d0bf7ad + 08548b9 commit 39a6bc9
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 39a6bc9

Please sign in to comment.