diff -r 6fceb66e1ad7 -r 961a8a3acb9a 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 Mon Aug 17 11:00:51 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) {