Skip to content

Commit 642c044

Browse files
committed
Fix issue with long responses failing encryption
1 parent 1fb9e96 commit 642c044

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/com/beowulfe/hap/impl/connections/LengthPrefixedByteArrayProcessor.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ public synchronized Collection<byte[]> handle(byte[] data) {
2121
System.arraycopy(data, pos+2, b, 0, targetLength-2);
2222
results.add(b);
2323
pos = pos + targetLength;
24+
} else {
25+
break;
2426
}
2527
}
2628
}

0 commit comments

Comments
 (0)