Skip to content

Commit

Permalink
Try to fixed #42
Browse files Browse the repository at this point in the history
  • Loading branch information
andot committed Apr 23, 2018
1 parent 4b1ec66 commit 99daa1c
Show file tree
Hide file tree
Showing 13 changed files with 1 addition and 3 deletions.
Binary file modified dist/hprose_client_for_java_10.jar
Binary file not shown.
Binary file modified dist/hprose_client_for_java_5.jar
Binary file not shown.
Binary file modified dist/hprose_client_for_java_6.jar
Binary file not shown.
Binary file modified dist/hprose_client_for_java_7.jar
Binary file not shown.
Binary file modified dist/hprose_client_for_java_8.jar
Binary file not shown.
Binary file modified dist/hprose_client_for_java_9.jar
Binary file not shown.
Binary file modified dist/hprose_for_java_10.jar
Binary file not shown.
Binary file modified dist/hprose_for_java_5.jar
Binary file not shown.
Binary file modified dist/hprose_for_java_6.jar
Binary file not shown.
Binary file modified dist/hprose_for_java_7.jar
Binary file not shown.
Binary file modified dist/hprose_for_java_8.jar
Binary file not shown.
Binary file modified dist/hprose_for_java_9.jar
Binary file not shown.
4 changes: 1 addition & 3 deletions src/main/java/hprose/net/OutPacket.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ public final class OutPacket {
public final int totalLength;
public int writeLength = 0;
public OutPacket(ByteBuffer buffer, Integer id) {
if (buffer.remaining() == 0) {
buffer.rewind();
}
buffer.rewind();
if (id == null) {
buffers[0] = ByteBuffer.allocate(4);
buffers[0].putInt(buffer.remaining());
Expand Down

0 comments on commit 99daa1c

Please sign in to comment.