diff --git a/bundles/org.openhab.binding.insteon/src/main/java/org/openhab/binding/insteon/internal/transport/HubIOStream.java b/bundles/org.openhab.binding.insteon/src/main/java/org/openhab/binding/insteon/internal/transport/HubIOStream.java index 9ac174a19ed21..485d7ff5640fc 100644 --- a/bundles/org.openhab.binding.insteon/src/main/java/org/openhab/binding/insteon/internal/transport/HubIOStream.java +++ b/bundles/org.openhab.binding.insteon/src/main/java/org/openhab/binding/insteon/internal/transport/HubIOStream.java @@ -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()); } }