Skip synCall for logged out users
This commit is contained in:
parent
fc69e420e6
commit
4ac064e327
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