Fix ForwardPortWithAdb - update device_id variable if Android device has been found.
llvm-svn: 233780
This commit is contained in:
parent
7a5014b040
commit
f9da94832f
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue