Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

Unified Diff: tools/battor_agent/battor_connection_impl.cc

Issue 2826913002: [BattOr] Retry battor_agent commands when they fail. (Closed)
Patch Set: Doubled retry attempts (each StopTracing attempt requires two retries) Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 0677ea08155a6b1cb9b824e91479bcb4c80aaf34..e3dfa2df282e7eda11fef5d694c7320628d1800b 100644
--- a/tools/battor_agent/battor_connection_impl.cc
+++ b/tools/battor_agent/battor_connection_impl.cc
@@ -80,6 +80,8 @@ BattOrConnectionImpl::~BattOrConnectionImpl() {}
void BattOrConnectionImpl::Open() {
if (io_handler_) {
+ // Opening new connection so flush serial data from old connection.
+ Flush();
rnephew (Reviews Here) 2017/05/09 15:04:06 Are the flushes not needed elsewhere because we mo
aschulman 2017/05/11 13:13:00 Correct. Before we had to flush manually between r
OnOpened(true);
return;
}

Powered by Google App Engine
This is Rietveld 408576698