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]>
  • Loading branch information
paulianttila authored and J-N-K committed Jul 14, 2020
1 parent fd5fa86 commit 9754a14
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 9754a14

Please sign in to comment.