Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob][photos] Prevent double ML sessions in debug iOS

laurenspriem5eb153a31069
diff --git a/mobile/lib/services/machine_learning/ml_service.dart b/mobile/lib/services/machine_learning/ml_service.dart
index 36a550098b..10ee47198e 100644
--- a/mobile/lib/services/machine_learning/ml_service.dart
+++ b/mobile/lib/services/machine_learning/ml_service.dart
@@ -551,7 +551,7 @@ class MLService {
}
bool _cannotRunMLFunction({String function = ""}) {
- if (kDebugMode && Platform.isIOS) {
+ if (kDebugMode && Platform.isIOS && !_isIndexingOrClusteringRunning) {
return false;
}
if (_isIndexingOrClusteringRunning) {