Prevent infinite loop when flushed after last read