Merge pull request #840 from ente-io/handle_sync_all_call_err

Fix: Skip syncAll call if user is logged out
This commit is contained in:
Neeraj Gupta 2023-02-03 13:28:49 +05:30 committed by GitHub
commit 4f32b42611
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -171,6 +171,10 @@ class LocalSyncService {
}
Future<bool> syncAll() async {
if (!Configuration.instance.isLoggedIn()) {
_logger.warning("syncCall called when user is not logged in");
return false;
}
final stopwatch = EnteWatch("localSyncAll")..start();
final localAssets = await getAllLocalAssets();