Flush buffer if we haven't done anything for 1 second