| Index: tools/battor_agent/battor_connection_impl.cc
|
| diff --git a/tools/battor_agent/battor_connection_impl.cc b/tools/battor_agent/battor_connection_impl.cc
|
| index cc113a982906f354db84011fe34451bed2c0327e..cf33c2ab97b18e1359f077f192117aae2840b6b5 100644
|
| --- a/tools/battor_agent/battor_connection_impl.cc
|
| +++ b/tools/battor_agent/battor_connection_impl.cc
|
| @@ -181,6 +181,10 @@ void BattOrConnectionImpl::ReadMessage(BattOrMessageType type) {
|
| BeginReadBytes(message_max_bytes - already_read_buffer_.size());
|
| }
|
|
|
| +void BattOrConnectionImpl::CancelReadMessage() {
|
| + io_handler_->CancelRead(device::serial::ReceiveError::TIMEOUT);
|
| +}
|
| +
|
| void BattOrConnectionImpl::Flush() {
|
| io_handler_->Flush();
|
| already_read_buffer_.clear();
|
|
|