org/sonews/daemon/ChannelLineBuffers.java
changeset 20 6ae5e4f8329b
parent 1 6fceb66e1ad7
child 25 dd05c3f2fa24
     1.1 --- a/org/sonews/daemon/ChannelLineBuffers.java	Fri Jun 26 16:48:50 2009 +0200
     1.2 +++ b/org/sonews/daemon/ChannelLineBuffers.java	Mon Aug 24 13:00:05 2009 +0200
     1.3 @@ -233,10 +233,11 @@
     1.4    public static void recycleBuffer(ByteBuffer buffer)
     1.5    {
     1.6      assert buffer != null;
     1.7 -    assert buffer.capacity() >= BUFFER_SIZE;
     1.8  
     1.9      if(buffer.isDirect())
    1.10      {
    1.11 +      assert buffer.capacity() >= BUFFER_SIZE;
    1.12 +      
    1.13        // Add old buffers to the list of free buffers
    1.14        synchronized(freeSmallBuffers)
    1.15        {