Fix clearing of wrapper

This commit is contained in:
Myles 2016-07-02 21:07:22 +01:00
parent 13c6a9d612
commit c6d3c97c65

View File

@ -223,6 +223,7 @@ public class PacketWrapper {
}
if (readableObjects.size() > 0) {
packetValues.addAll(readableObjects);
readableObjects.clear();
}
int index = 0;
@ -267,7 +268,7 @@ public class PacketWrapper {
private void writeRemaining(ByteBuf output) {
if (inputBuffer != null) {
output.writeBytes(inputBuffer);
output.writeBytes(inputBuffer, inputBuffer.readableBytes());
}
}