9460de1ce80a41cd6171a7e03d9fa7aef2db9dce had a backwards test that means
all adb commands abort. Fix the sense of the test.

Bug: http://b/30445394
Change-Id: I4b8ee697f7d305b57f9cd1a70ae919869dee994d
This commit is contained in:
Elliott Hughes 2016-09-01 20:48:45 -07:00
parent 1f5a49f77a
commit 7f4ab76240
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}