Skip to content

Commit

Permalink
fix when nologin and resumed it will log error
Browse files Browse the repository at this point in the history
  • Loading branch information
haorendashu committed Jun 26, 2024
1 parent 831ea2b commit 0cc8bee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/router/index/index_router.dart
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@ class _IndexRouter extends CustState<IndexRouter>
switch (state) {
case AppLifecycleState.resumed:
print("AppLifecycleState.resumed");
nostr!.reconnect();
if (nostr != null) {
nostr!.reconnect();
}
break;
case AppLifecycleState.inactive:
print("AppLifecycleState.inactive");
Expand Down

0 comments on commit 0cc8bee

Please sign in to comment.