Skip to content
Merged
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
10 changes: 6 additions & 4 deletions lib/app/modules/home/controllers/home_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -420,10 +420,12 @@ class HomeController extends GetxController {
@override
void onClose() {
super.onClose();

if (delayToSchedule != null) {
delayToSchedule!.cancel();
}
// Cancel the periodic UI update timer
_timer.cancel();
// Cancel the delay timer if it was currently waiting
_delayTimer?.cancel();
// Cancel the scheduling delay timer
delayToSchedule?.cancel();
}

Future<void> fetchGoogleCalendars() async {
Expand Down