Skip to content

An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.

update _fetchPeers

Sahil Yeolec00d4c1a7bb1
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<ConnectionPage>
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<void> _getAllPeers() async {