From 01e03f033c2e49ee12876fe29a7e0f11c26ebddf Mon Sep 17 00:00:00 2001 From: Moustapha Kodjo Amadou <107993382+kodjodevf@users.noreply.github.com> Date: Fri, 30 May 2025 19:10:10 +0100 Subject: [PATCH] fix #466 --- lib/modules/more/about/providers/download_file_screen.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/modules/more/about/providers/download_file_screen.dart b/lib/modules/more/about/providers/download_file_screen.dart index 6b8b5390..758bee07 100644 --- a/lib/modules/more/about/providers/download_file_screen.dart +++ b/lib/modules/more/about/providers/download_file_screen.dart @@ -67,7 +67,9 @@ class _DownloadFileScreenState extends ConsumerState { children: [ TextButton( onPressed: () async { - await _subscription?.cancel(); + try { + await _subscription?.cancel(); + } catch (_) {} if (context.mounted) { Navigator.pop(context); }