org/sonews/daemon/ChannelLineBuffers.java
changeset 25 dd05c3f2fa24
parent 3 2fdc9cc89502
     1.1 --- a/org/sonews/daemon/ChannelLineBuffers.java	Wed Aug 26 17:04:04 2009 +0200
     1.2 +++ b/org/sonews/daemon/ChannelLineBuffers.java	Fri Dec 25 15:42:46 2009 +0100
     1.3 @@ -124,6 +124,18 @@
     1.4        }
     1.5      }
     1.6    }
     1.7 +
     1.8 +  /**
     1.9 +   * @return false if there are output buffers pending to be written to the
    1.10 +   * client.
    1.11 +   */
    1.12 +  boolean isOutputBufferEmpty()
    1.13 +  {
    1.14 +    synchronized(outputBuffers)
    1.15 +    {
    1.16 +      return outputBuffers.isEmpty();
    1.17 +    }
    1.18 +  }
    1.19    
    1.20    /**
    1.21     * Goes through the input buffer of the given channel and searches