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