finished

fun finished()

Should not be accessing the final buffer before it is finished.