diff options
author | Elliott Hughes <enh@google.com> | 2016-09-01 20:48:45 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2016-09-01 20:48:45 -0700 |
commit | 7f4ab76240a77e586e7737636a4752332be8ffe6 (patch) | |
tree | 260f16bccdcc9fdb68bca6f8bd22970e3116429d | |
parent | 1f5a49f77af80677f442e639a1b2ac856bc62042 (diff) | |
download | core-7f4ab76240a77e586e7737636a4752332be8ffe6.tar.gz core-7f4ab76240a77e586e7737636a4752332be8ffe6.tar.bz2 core-7f4ab76240a77e586e7737636a4752332be8ffe6.zip |
Fix adb.
9460de1ce80a41cd6171a7e03d9fa7aef2db9dce had a backwards test that means
all adb commands abort. Fix the sense of the test.
Bug: http://b/30445394
Change-Id: I4b8ee697f7d305b57f9cd1a70ae919869dee994d
-rw-r--r-- | adb/adb_client.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/adb/adb_client.cpp b/adb/adb_client.cpp index 0b2fc1e6f..919e1c19a 100644 --- a/adb/adb_client.cpp +++ b/adb/adb_client.cpp @@ -60,8 +60,8 @@ void adb_get_transport(TransportType* type, const char** serial) { } void adb_set_socket_spec(const char* socket_spec) { - if (!__adb_server_socket_spec) { - LOG(FATAL) << "attempted to reinitialize adb_server_socket_spec"; + if (__adb_server_socket_spec) { + LOG(FATAL) << "attempted to reinitialize adb_server_socket_spec " << socket_spec << " (was " << __adb_server_socket_spec << ")"; } __adb_server_socket_spec = socket_spec; } |