Skip to content

Commit

Permalink
[rfxcom] EOF fix (openhab#7272)
Browse files Browse the repository at this point in the history
Fixes openhab#5579

Signed-off-by: Pauli Anttila <[email protected]>
Signed-off-by: Hans-Reiner Hoffmann <[email protected]>
  • Loading branch information
paulianttila authored and Hans-Reiner committed Apr 11, 2020
1 parent 6537211 commit 8634ff7
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ public void run() {
logger.trace("Message length is {} bytes", packetLength);
processMessage(buf, packetLength);
connector.sendMsgToListeners(Arrays.copyOfRange(buf, 0, packetLength + 1));
} else if (bytesRead == -1) {
throw new IOException("End of stream");
}
}
} catch (IOException | RFXComTimeoutException e) {
Expand Down

0 comments on commit 8634ff7

Please sign in to comment.