Fix ForwardPortWithAdb - update device_id variable if Android device has been found.

llvm-svn: 233780
This commit is contained in:
Oleksiy Vyalov 2015-04-01 02:30:17 +00:00
parent 7a5014b040
commit f9da94832f
1 changed files with 2 additions and 1 deletions

View File

@ -34,8 +34,9 @@ ForwardPortWithAdb (uint16_t port, std::string& device_id)
if (error.Fail ())
return error;
device_id = adb.GetDeviceID ();
if (log)
log->Printf("Connected to Android device \"%s\"", adb.GetDeviceID ().c_str ());
log->Printf("Connected to Android device \"%s\"", device_id.c_str ());
return adb.SetPortForwarding (port);
}