diff -r 2fdc9cc89502 -r dd05c3f2fa24 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 Fri Dec 25 15:42:46 2009 +0100 @@ -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