Skip to content

armgit / ente

Public Imported from GitHub
0

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

fix: Check _isStopped after getFile to handle logout during download

Prateek Sunalb676cf24741d
diff --git a/mobile/apps/photos/lib/services/video_preview_service.dart b/mobile/apps/photos/lib/services/video_preview_service.dart
index 1b590fca64..1a1431f26e 100644
--- a/mobile/apps/photos/lib/services/video_preview_service.dart
+++ b/mobile/apps/photos/lib/services/video_preview_service.dart
@@ -438,8 +438,8 @@ class VideoPreviewService {
// get file
file ??= await getFile(enteFile, isOrigin: true);
- if (file == null) {
- error = "Unable to fetch file";
+ if (_isStopped || file == null) {
+ if (file == null) error = "Unable to fetch file";
return;
}