Skip to content

Commit

Permalink
Set refCnt back to 1 when recycling ByteBufPayload (#446)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryland Degnan authored and robertroeser committed Nov 14, 2017
1 parent 24691af commit ad372da
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ public static Payload create(ByteBuf data) {

public static Payload create(ByteBuf data, @Nullable ByteBuf metadata) {
ByteBufPayload payload = RECYCLER.get();
payload.setRefCnt(1);
payload.data = data;
payload.metadata = metadata;
return payload;
Expand Down

0 comments on commit ad372da

Please sign in to comment.