mirror of
https://github.com/sirjonasxx/G-Earth.git
synced 2025-01-31 12:52:36 +01:00
timeout harble api
This commit is contained in:
parent
7f6f95e3cc
commit
88d72d9a67
@ -44,6 +44,7 @@ public class HarbleAPIFetcher {
|
|||||||
else {
|
else {
|
||||||
Connection connection = Jsoup.connect(HARBLE_API_URL.replace("$hotelversion$", hotelversion)).ignoreContentType(true);
|
Connection connection = Jsoup.connect(HARBLE_API_URL.replace("$hotelversion$", hotelversion)).ignoreContentType(true);
|
||||||
try {
|
try {
|
||||||
|
connection.timeout(3000);
|
||||||
Connection.Response response = connection.execute();
|
Connection.Response response = connection.execute();
|
||||||
if (response.statusCode() == 200) {
|
if (response.statusCode() == 200) {
|
||||||
String messagesBodyJson = response.body();
|
String messagesBodyJson = response.body();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user