Chromium Code Reviews| 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 357ad6c3a99824109244ca79972ceac228e1aeff..cb123e488c533a9119a3b0d7df42b17594e87226 100644 |
| --- a/tools/battor_agent/battor_connection_impl.cc |
| +++ b/tools/battor_agent/battor_connection_impl.cc |
| @@ -171,6 +171,10 @@ void BattOrConnectionImpl::ReadMessage(BattOrMessageType type) { |
| BeginReadBytes(max_bytes_to_read - already_read_buffer_.size()); |
| } |
| +void BattOrConnectionImpl::CancelReadMessage() { |
| + io_handler_->CancelRead(device::serial::ReceiveError::NONE); |
|
charliea (OOO until 10-5)
2016/05/23 14:08:52
Think it might be more accurate to cancel it w/ Re
aschulman
2016/06/10 07:22:59
Done.
|
| +} |
| + |
| void BattOrConnectionImpl::Flush() { |
| io_handler_->Flush(); |
| already_read_buffer_.clear(); |