use first entry in nodeinfo #827

This commit is contained in:
tom79 2019-02-26 17:44:22 +01:00
parent 8c03324e96
commit 2614b67a95
1 changed files with 1 additions and 1 deletions

View File

@ -183,7 +183,7 @@ public class API {
nodeInfos.add(nodeInfo);
}
if( nodeInfos.size() > 0){
NodeInfo nodeInfo = nodeInfos.get(nodeInfos.size()-1);
NodeInfo nodeInfo = nodeInfos.get(0);
response = new HttpsConnection(context).get(nodeInfo.getHref(), 30, null, null);
JSONObject resobj = new JSONObject(response);
JSONObject jsonObject = resobj.getJSONObject("software");