mirror of
				https://github.com/ImranR98/Obtainium.git
				synced 2025-10-31 05:23:28 +01:00 
			
		
		
		
	Wait 5s between download retries
This commit is contained in:
		| @@ -154,6 +154,7 @@ class AppsProvider with ChangeNotifier { | |||||||
|           useExisting: useExisting, headers: headers); |           useExisting: useExisting, headers: headers); | ||||||
|     } catch (e) { |     } catch (e) { | ||||||
|       if (retries > 0 && e is ClientException) { |       if (retries > 0 && e is ClientException) { | ||||||
|  |         await Future.delayed(const Duration(seconds: 5)); | ||||||
|         return await downloadFileWithRetry(url, fileNameNoExt, onProgress, |         return await downloadFileWithRetry(url, fileNameNoExt, onProgress, | ||||||
|             useExisting: useExisting, headers: headers, retries: (retries - 1)); |             useExisting: useExisting, headers: headers, retries: (retries - 1)); | ||||||
|       } else { |       } else { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user