diff -r 2fdc9cc89502 -r 3af4237e4a15 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 Wed Jun 30 14:48:53 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