diff -r 1090e2141798 -r 2fdc9cc89502 org/sonews/daemon/ChannelLineBuffers.java --- a/org/sonews/daemon/ChannelLineBuffers.java Wed Jul 01 10:48:22 2009 +0200 +++ b/org/sonews/daemon/ChannelLineBuffers.java Wed Jul 22 14:04:05 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) {