From c00d4c1a7bb1989df98acc276e697c9f05203a3c Mon Sep 17 00:00:00 2001 From: Sahil Yeole Date: Tue, 17 Oct 2023 18:23:44 +0530 Subject: [PATCH] update _fetchPeers Signed-off-by: Sahil Yeole --- flutter/lib/desktop/pages/connection_page.dart | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/flutter/lib/desktop/pages/connection_page.dart b/flutter/lib/desktop/pages/connection_page.dart index 7c4da7d9c..f9984b955 100644 --- a/flutter/lib/desktop/pages/connection_page.dart +++ b/flutter/lib/desktop/pages/connection_page.dart @@ -157,11 +157,11 @@ class _ConnectionPageState extends State setState(() { isPeersLoading = true; }); - await Future.delayed(Duration(milliseconds: 100)); - await _getAllPeers(); - setState(() { - isPeersLoading = false; - }); + await Future.delayed(Duration(milliseconds: 100)); + await _getAllPeers(); + setState(() { + isPeersLoading = false; + }); } Future _getAllPeers() async {