Merge pull request #165 from ente-io/regression_bug_fix

Bugfix: Logout user on invalid token
This commit is contained in:
Neeraj Gupta 2022-01-07 22:08:44 +05:30 committed by GitHub
commit cf14656c6e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -104,6 +104,9 @@ class RemoteSyncService {
_logger.severe("Error executing remote sync ", e, s);
_existingSync.complete();
_existingSync = null;
if (e is UnauthorizedError) {
rethrow;
}
}
}