diff --git a/lib/ui/landing/dashboard_screen.dart b/lib/ui/landing/dashboard_screen.dart index 954b647..e1250b4 100644 --- a/lib/ui/landing/dashboard_screen.dart +++ b/lib/ui/landing/dashboard_screen.dart @@ -66,11 +66,10 @@ class _DashboardScreenState extends State { await hubConnection.start(); hubConnection.onreconnecting(({Exception? error}) { print("============== Reconnecting ======================"); - //if (hubConnection.state != HubConnectionState.Connected) { - data.getUserAutoLoginToken().whenComplete(() { - buildHubConnection(); - }); - //} + data.getUserAutoLoginToken().whenComplete(() { + buildHubConnection(); + data.notifyListeners(); + }); }); }