Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -140,13 +140,13 @@ public String Stop() throws HttpResponseException, IOException {
try {

return client.get(url + "stop");
} catch (IOException ex) {
if (((HttpResponseException) ex).getStatusCode() == 405) {
} catch (HttpResponseException ex) {
if (ex.getStatusCode() == 405) {
stopPost();
return "";
}
throw ex;
}
return "";
}

/** Stops the build which is currently in progress. This version takes in
Expand All @@ -163,13 +163,13 @@ public String Stop(boolean crumbFlag) throws HttpResponseException, IOException
try {

return client.get(url + "stop");
} catch (IOException ex) {
if (((HttpResponseException) ex).getStatusCode() == 405) {
} catch (HttpResponseException ex) {
if (ex.getStatusCode() == 405) {
stopPost(crumbFlag);
return "";
}
throw ex;
}
return "";
}

private void stopPost(boolean crumbFlag) throws HttpResponseException, IOException {
Expand Down