Bugfix: Logout user on invalid token

This commit is contained in:
Neeraj Gupta 2022-01-07 22:00:22 +05:30
parent b1560d4c69
commit b177469df8
No known key found for this signature in database
GPG key ID: 3C5A1684DC1729E1

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;
}
}
}