Skip to content

Commit

Permalink
bug correction : when there is only one node responding, manually cal…
Browse files Browse the repository at this point in the history
…l function filling selected nodes list on result page
  • Loading branch information
nicolasmoreau committed Aug 12, 2015
1 parent 35304b8 commit bfee270
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,14 +175,18 @@ public void completeEvent(){
this.completeEventCalled=true;
List<HttpHeadResponse> results = getNodes();
int numActive=0;
String nodeId = null;


for (HttpHeadResponse node:results){

if (node.isOk() && node.getStatus()==Response.OK)
if (node.isOk() && node.getStatus()==Response.OK){
nodeId = node.getIvoaID();
numActive++;
}
}

if (numActive==1){
consumers.updateNodeIds(nodeId);
consumers.getQueries().put(results.get(0).getFullQueryURL(), true);
}

Expand Down

0 comments on commit bfee270

Please sign in to comment.