org/sonews/daemon/ChannelLineBuffers.java
changeset 3 2fdc9cc89502
parent 1 6fceb66e1ad7
child 25 dd05c3f2fa24
     1.1 --- a/org/sonews/daemon/ChannelLineBuffers.java	Wed Jul 01 10:48:22 2009 +0200
     1.2 +++ b/org/sonews/daemon/ChannelLineBuffers.java	Wed Jul 22 14:04: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        {