Merge "Fix adb."

This commit is contained in:
Josh Gao 2016-09-02 08:38:05 +00:00 committed by Gerrit Code Review
commit 50d606528d
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;
}