Skip to content

Commit

Permalink
fix timer issue
Browse files Browse the repository at this point in the history
  • Loading branch information
shubhral-kumar committed Feb 4, 2021
1 parent 16af09b commit 95872a2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion example/lib/non_tc_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,9 @@ class _HomePageState extends State<HomePage> {
if (streamSubscription != null) {
streamSubscription.cancel();
}
_timer.cancel();
if (_timer != null) {
_timer.cancel();
}
super.dispose();
}
}

0 comments on commit 95872a2

Please sign in to comment.