Skip to content

Commit

Permalink
Disconnect node on wallet reset
Browse files Browse the repository at this point in the history
  • Loading branch information
KingGorrin committed Mar 14, 2024
1 parent a897495 commit 7d9abd5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/screens/splash_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ class _SplashScreenState extends State<SplashScreen>
// after the user creates or imports a new wallet
kWalletInitCompleted = false;
await sl.get<NotificationsBloc>().addNotification(null);
NodeUtils.stopWebSocketClient();
if (sl<AutoReceiveTxWorker>().pool.isNotEmpty) {
sl<AutoReceiveTxWorker>().pool.clear();
}
Expand Down

0 comments on commit 7d9abd5

Please sign in to comment.