π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mob][photos] Wait on update
laurenspriemd7c3d3d89fce
diff --git a/mobile/lib/services/memories_cache_service.dart b/mobile/lib/services/memories_cache_service.dartindex 727885d8f0..4b63484642 100644--- a/mobile/lib/services/memories_cache_service.dart+++ b/mobile/lib/services/memories_cache_service.dart@@ -137,6 +137,13 @@ class MemoriesCacheService {_logger.info("No update needed as shouldUpdate: $_shouldUpdate, forced: $forced and isUpdateInProgress $_isUpdateInProgress",);+ if (_isUpdateInProgress) {+ int waitingTime = 0;+ while (_isUpdateInProgress && waitingTime < 60) {+ await Future.delayed(const Duration(seconds: 1));+ waitingTime++;+ }+ }return;}_logger.info("updating memories cache");