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

Commit

Permalink
increase timer to be sure data is received (if platform existed) (#35)
Browse files Browse the repository at this point in the history
Co-authored-by: Damien Albisson <[email protected]>
  • Loading branch information
Darcraytore1 and Damien Albisson authored May 23, 2024
1 parent c41111d commit d6d3046
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/data/utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ final _chars =
'AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz1234567890';
final Random _rnd = Random();


// remove the connection of disk,
// first the direct entry of this connection
// then remove it from the directory (connectionKey)
Expand Down Expand Up @@ -329,7 +328,7 @@ Future<List<(String, int, String)>> platformDiscovery() async {
print("Local discovery on ${e.address}:${e.port} failed, error code = ${e.osError?.errorCode}, ${e.osError?.message}");
}

await Future.delayed(const Duration(milliseconds: 100));
await Future.delayed(const Duration(milliseconds: 400));
socket.close();
}
}
Expand Down

0 comments on commit d6d3046

Please sign in to comment.