diff --git a/app/build.gradle b/app/build.gradle index 931b79f..9b232e1 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -12,7 +12,7 @@ android { minSdkVersion 17 targetSdkVersion 17 versionCode 1 - versionName "3.1.1.2" + versionName "3.1.1.3" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" ndk { abiFilters 'armeabi-v7a' diff --git a/app/src/main/java/g4rb4g3/at/abrptransmitter/service/AbrpTransmitterService.java b/app/src/main/java/g4rb4g3/at/abrptransmitter/service/AbrpTransmitterService.java index ffe85eb..d66e0a6 100644 --- a/app/src/main/java/g4rb4g3/at/abrptransmitter/service/AbrpTransmitterService.java +++ b/app/src/main/java/g4rb4g3/at/abrptransmitter/service/AbrpTransmitterService.java @@ -314,7 +314,8 @@ private void sendUpdate(String url) throws IOException, NoSuchAlgorithmException BufferedReader reader = null; try { connection = (HttpsURLConnection) new URL(url).openConnection(); - connection.setConnectTimeout((int) INTERVAL_SEND_UPDATE - 200); + connection.setConnectTimeout((int) INTERVAL_SEND_UPDATE / 2 - 100); + connection.setReadTimeout((int) INTERVAL_SEND_UPDATE / 2 - 100); connection.setSSLSocketFactory(new TLSSocketFactory()); connection.connect();