We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87f4dc7 commit 044bd24Copy full SHA for 044bd24
src/main/java/org/scijava/io/http/HTTPHandle.java
@@ -179,8 +179,10 @@ else if (result.code() == 206) {
179
serverCanResume = true;
180
}
181
else {
182
- throw new IOException("HTTP connection failure, errorcode: " + result
183
- .code());
+ final int code = result.code();
+ // We set this to null to ensure we will try again later
184
+ this.result = null;
185
+ throw new IOException("HTTP connection failure, errorcode: " + code);
186
187
188
return result;
0 commit comments