fix: call_command timeout时提前返回 std::nullopt

fix #9218
fix #9102
This commit is contained in:
uye
2024-05-27 18:23:36 +08:00
parent 69b4be7a92
commit d4d7eeaef5
2 changed files with 15 additions and 2 deletions

View File

@@ -137,6 +137,7 @@ std::optional<std::string> asst::AdbController::call_command(
m_platform_io->call_command(cmd, recv_by_socket, pipe_data, sock_data, timeout, start_time);
if (!exit_res) {
Log.warn("Call `", cmd, "` failed");
return std::nullopt;
}
const int exit_ret = exit_res.value();