[mob][photos] Fix indexing pausing

This commit is contained in:
laurenspriem 2024-05-23 14:27:12 +05:30
parent 1e1e629891
commit 11402d7819

View file

@ -152,6 +152,7 @@ class FaceMlService {
_logger.info( _logger.info(
"MLController allowed running ML, faces indexing starting", "MLController allowed running ML, faces indexing starting",
); );
}
unawaited(indexAndClusterAll()); unawaited(indexAndClusterAll());
} }
} else { } else {
@ -287,10 +288,6 @@ class FaceMlService {
return _functionLock.synchronized(() async { return _functionLock.synchronized(() async {
_resetInactivityTimer(); _resetInactivityTimer();
if (_shouldPauseIndexingAndClustering == false) {
return null;
}
final completer = Completer<dynamic>(); final completer = Completer<dynamic>();
final answerPort = ReceivePort(); final answerPort = ReceivePort();