Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Add delay before queuing files for streaming

Neeraj Guptae55dcff9a5d7
diff --git a/mobile/lib/services/preview_video_store.dart b/mobile/lib/services/preview_video_store.dart
index 8f2ff5cbe4..474e8bfaef 100644
--- a/mobile/lib/services/preview_video_store.dart
+++ b/mobile/lib/services/preview_video_store.dart
@@ -818,10 +818,12 @@ class PreviewVideoStore {
}
void queueFiles() {
- if (!_hasQueuedFile) {
- _putFilesForPreviewCreation(true).catchError((_) {
- _hasQueuedFile = false;
- });
- }
+ Future.delayed(const Duration(seconds: 5), () {
+ if (!_hasQueuedFile) {
+ _putFilesForPreviewCreation(true).catchError((_) {
+ _hasQueuedFile = false;
+ });
+ }
+ });
}
}