[mob][photos] Fix indexing pausing
This commit is contained in:
parent
1e1e629891
commit
11402d7819
|
@ -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();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue