[mob][photos] Make sure clustering can run again after exception

This commit is contained in:
laurenspriem 2024-05-21 16:34:46 +05:30
parent 0d43c0d326
commit 1bd2033a63

View file

@ -527,9 +527,10 @@ class FaceMlService {
Bus.instance.fire(PeopleChangedEvent());
_logger.info('clusterAllImages() finished, in '
'${DateTime.now().difference(clusterAllImagesTime).inSeconds} seconds');
isClusteringRunning = false;
} catch (e, s) {
_logger.severe("`clusterAllImages` failed", e, s);
} finally {
isClusteringRunning = false;
}
}