Changed object pool so the responsibility to specify parameters after pool.take() is to the implementation, not the objectpool
This commit is contained in:
parent
a6c9eb405a
commit
d647d23829
@ -255,6 +255,7 @@ public class InputConsole {
|
||||
|
||||
ObjectPoolHolder<ByteBuffer2> holder = this.pool.take();
|
||||
buffer = holder.getValue();
|
||||
buffer.clear();
|
||||
this.readBuff.set(holder);
|
||||
this.readBuffers.add(holder);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user