Clear buffer after sending data.