timeout harble api

This commit is contained in:
sirjonasxx 2020-06-25 05:01:35 +02:00
parent 7f6f95e3cc
commit 88d72d9a67

View File

@ -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();