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:
commit
4f32b42611
1 changed files with 4 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue