Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions app/lib/screens/authentication_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,14 @@ class AuthenticationScreenState extends State<AuthenticationScreen> {
WidgetsBinding.instance.addPostFrameCallback((_) => checkFingerprint());
}

@override
void dispose() {
if (widget.loginData != null && widget.loginData!.isMobile == false) {
timer.cancel();
}
super.dispose();
}

timeoutTimer() async {
if (!mounted) {
timer.cancel();
Expand Down
8 changes: 8 additions & 0 deletions app/lib/screens/login_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,14 @@ class _LoginScreenState extends State<LoginScreen> with BlockAndRunMixin {
});
}

@override
void dispose() {
if (!isMobileCheck) {
timer.cancel();
}
super.dispose();
}

timeoutTimer() async {
if (!mounted) {
timer.cancel();
Expand Down