Skip to content

Commit

Permalink
Use correct value to disable/enable direct arenas in PooledByteBufAll…
Browse files Browse the repository at this point in the history
…ocator
  • Loading branch information
Norman Maurer committed May 30, 2013
1 parent 89f1f3f commit bc20107
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public PooledByteBufAllocator(boolean preferDirect, int nHeapArena, int nDirectA
heapArenas = null;
}

if (nHeapArena > 0) {
if (nDirectArena > 0) {
directArenas = newArenaArray(nDirectArena);
for (int i = 0; i < directArenas.length; i ++) {
directArenas[i] = new PoolArena.DirectArena(this, pageSize, maxOrder, pageShifts, chunkSize);
Expand Down

0 comments on commit bc20107

Please sign in to comment.