[mob][face] Add delay before starting faceIndexing
This commit is contained in:
parent
aa58989299
commit
03e5f06bf2
1 changed files with 6 additions and 1 deletions
|
@ -118,7 +118,12 @@ class FaceMlService {
|
|||
if (LocalSettings.instance.isFaceIndexingEnabled == false) {
|
||||
return;
|
||||
}
|
||||
unawaited(indexAllImages());
|
||||
// [neeraj] intentional delay in starting indexing on diff sync, this gives time for the user
|
||||
// to disable face-indexing in case it's causing crash. In the future, we
|
||||
// should have a better way to handle this.
|
||||
Future.delayed(const Duration(seconds: 10), () {
|
||||
unawaited(indexAllImages());
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue