Skip to content

armgit / ente

Public Imported from GitHub
0

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

fix: Separate _isStopped check from null check

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