X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/blobdiff_plain/261aaf50019732a4e766d6b3e9e07576a64f5504..f3d61ef57832e5ca37f00ec6702207e0f208bb30:/src/com/owncloud/android/authenticator/ConnectionCheckOperation.java diff --git a/src/com/owncloud/android/authenticator/ConnectionCheckOperation.java b/src/com/owncloud/android/authenticator/ConnectionCheckOperation.java index 7ed61eab..17b0dc23 100644 --- a/src/com/owncloud/android/authenticator/ConnectionCheckOperation.java +++ b/src/com/owncloud/android/authenticator/ConnectionCheckOperation.java @@ -121,7 +121,7 @@ public class ConnectionCheckOperation extends RemoteOperation { if (tryConnection(client, "https://" + mUrl + AccountUtils.STATUS_PATH)) { return new RemoteOperationResult(RemoteOperationResult.ResultCode.OK_SSL); - } else if (mLatestResult.isSslRecoverableException()) { + } else if (!mLatestResult.isSslRecoverableException()) { Log.d(TAG, "establishing secure connection failed, trying non secure connection"); client.setBaseUri(Uri.parse("http://" + mUrl + AccountUtils.STATUS_PATH));