diff -r 6fceb66e1ad7 -r 91dc9acb03ed org/sonews/daemon/ChannelLineBuffers.java --- a/org/sonews/daemon/ChannelLineBuffers.java Fri Jun 26 16:48:50 2009 +0200 +++ b/org/sonews/daemon/ChannelLineBuffers.java Fri Aug 21 17:40:54 2009 +0200 @@ -233,10 +233,11 @@ public static void recycleBuffer(ByteBuffer buffer) { assert buffer != null; - assert buffer.capacity() >= BUFFER_SIZE; if(buffer.isDirect()) { + assert buffer.capacity() >= BUFFER_SIZE; + // Add old buffers to the list of free buffers synchronized(freeSmallBuffers) {