Skip to content

Commit

Permalink
[insteon] Restore hubiostream geturl interrupted state
Browse files Browse the repository at this point in the history
Signed-off-by: jsetton <[email protected]>
  • Loading branch information
jsetton committed Dec 19, 2024
1 parent cb210e7 commit 7f3b9d8
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,10 @@ private String getURL(String path) throws IOException {
default:
throw new IOException("GET " + request.getURI() + " failed with status code: " + statusCode);
}
} catch (InterruptedException | TimeoutException | ExecutionException e) {
} catch (InterruptedException e) {
Thread.currentThread().interrupt();
throw new IOException("GET " + request.getURI() + " interrupted");
} catch (TimeoutException | ExecutionException e) {
throw new IOException("GET " + request.getURI() + " failed with error: " + e.getMessage());
}
}
Expand Down

0 comments on commit 7f3b9d8

Please sign in to comment.