Skip to content
This repository has been archived by the owner on Dec 28, 2024. It is now read-only.

Commit

Permalink
Merge pull request #22 from Panduza/20-local-discovery-wait-any-answer
Browse files Browse the repository at this point in the history
Accept any answer of a platform
  • Loading branch information
wardru authored May 21, 2024
2 parents 3afb424 + 343aedb commit 4ff07d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/data/utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ Future<List<(InternetAddress, int, String)>> platformDiscovery() async {
Datagram? datagram = socket.receive();
if (datagram != null) {
String answer = utf8.decode(datagram.data);

Map<String, dynamic> answerMap = jsonDecode(answer);
String? platformName = answerMap["name"];

Expand Down

0 comments on commit 4ff07d0

Please sign in to comment.