diff --git a/owncloudComLibrary/src/main/java/com/owncloud/android/lib/common/OwnCloudClient.java b/owncloudComLibrary/src/main/java/com/owncloud/android/lib/common/OwnCloudClient.java index dd4fdf37..ccfb8ebf 100644 --- a/owncloudComLibrary/src/main/java/com/owncloud/android/lib/common/OwnCloudClient.java +++ b/owncloudComLibrary/src/main/java/com/owncloud/android/lib/common/OwnCloudClient.java @@ -381,11 +381,8 @@ public class OwnCloudClient extends HttpClient { * cannot be invalidated with the given arguments. */ private boolean shouldInvalidateAccountCredentials(int httpStatusCode) { - boolean isServerVersionSupported = AccountUtils.getServerVersionForAccount(getAccount().getSavedAccount(), - getContext()).isServerVersionSupported(); - boolean shouldInvalidateAccountCredentials = - (httpStatusCode == HttpConstants.HTTP_UNAUTHORIZED || !isServerVersionSupported); + (httpStatusCode == HttpConstants.HTTP_UNAUTHORIZED); shouldInvalidateAccountCredentials &= (mCredentials != null && // real credentials !(mCredentials instanceof OwnCloudCredentialsFactory.OwnCloudAnonymousCredentials));