From d6d3046cc9555f97a22f8d1948fe4b3648b79ab3 Mon Sep 17 00:00:00 2001 From: Darcraytore1 <57347517+Darcraytore1@users.noreply.github.com> Date: Thu, 23 May 2024 18:00:39 +0200 Subject: [PATCH] increase timer to be sure data is received (if platform existed) (#35) Co-authored-by: Damien Albisson --- lib/data/utils.dart | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/data/utils.dart b/lib/data/utils.dart index 297c848..3159477 100644 --- a/lib/data/utils.dart +++ b/lib/data/utils.dart @@ -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) @@ -329,7 +328,7 @@ Future> 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(); } }