diff -r 2fdc9cc89502 -r 146b3275b792 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 Sun May 09 12:38:46 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