[mob][photos] Regularly check for wifi
This commit is contained in:
parent
d585b75514
commit
7800b7db32
1 changed files with 5 additions and 5 deletions
|
@ -509,13 +509,13 @@ class FaceMlService {
|
|||
}
|
||||
}
|
||||
}
|
||||
if (!await canUseHighBandwidth()) {
|
||||
_logger
|
||||
.info('stopping indexing because user is not connected to wifi');
|
||||
continue;
|
||||
}
|
||||
final smallerChunks = chunk.chunks(_fileDownloadLimit);
|
||||
for (final smallestChunk in smallerChunks) {
|
||||
if (!await canUseHighBandwidth()) {
|
||||
_logger.info(
|
||||
'stopping indexing because user is not connected to wifi',);
|
||||
break outerLoop;
|
||||
}
|
||||
for (final enteFile in smallestChunk) {
|
||||
if (_shouldPauseIndexingAndClustering) {
|
||||
_logger.info("indexAllImages() was paused, stopping");
|
||||
|
|
Loading…
Reference in a new issue