diff -r 2fdc9cc89502 -r 15d14b110240 org/sonews/daemon/ChannelLineBuffers.java --- a/org/sonews/daemon/ChannelLineBuffers.java Wed Jul 22 14:04:05 2009 +0200 +++ b/org/sonews/daemon/ChannelLineBuffers.java Sat May 01 14:27:30 2010 +0200 @@ -124,6 +124,18 @@ } } } + + /** + * @return false if there are output buffers pending to be written to the + * client. + */ + boolean isOutputBufferEmpty() + { + synchronized(outputBuffers) + { + return outputBuffers.isEmpty(); + } + } /** * Goes through the input buffer of the given channel and searches