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

This commit is contained in:
laurenspriem 2024-08-22 16:23:14 +02:00
parent 1d50cdeeca
commit 5eb153a310

View File

@ -551,7 +551,7 @@ class MLService {
} }
bool _cannotRunMLFunction({String function = ""}) { bool _cannotRunMLFunction({String function = ""}) {
if (kDebugMode && Platform.isIOS) { if (kDebugMode && Platform.isIOS && !_isIndexingOrClusteringRunning) {
return false; return false;
} }
if (_isIndexingOrClusteringRunning) { if (_isIndexingOrClusteringRunning) {