diff --git a/lib/mobile/smart_downloader.dart b/lib/mobile/smart_downloader.dart index 7177a3f..4b0a9ee 100644 --- a/lib/mobile/smart_downloader.dart +++ b/lib/mobile/smart_downloader.dart @@ -184,8 +184,8 @@ class SmartDownloader { } // Configure FileDownloader and start download - _ensureConfigured(foreground).then((_) { - _downloadWithSmartRetry( + _ensureConfigured(foreground).then((_) async { + await _downloadWithSmartRetry( url: url, targetPath: targetPath, token: token,