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