mirror of
https://github.com/sirjonasxx/G-Earth.git
synced 2024-07-02 14:25:33 +02: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…
Reference in New Issue
Block a user