From eb46fbf1bdb7b17bbded705788e73a68795ead33 Mon Sep 17 00:00:00 2001 From: MistEO Date: Fri, 2 Dec 2022 01:05:13 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=BF=9E=E6=8E=A5?= =?UTF-8?q?=E6=96=AD=E5=BC=80=E9=87=8D=E8=BF=9E=E5=90=8E=E4=B8=8D=E4=BD=BF?= =?UTF-8?q?=E7=94=A8minitouch=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/MeoAssistant/Controller.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/MeoAssistant/Controller.cpp b/src/MeoAssistant/Controller.cpp index 16f0732adc..9bb230a153 100644 --- a/src/MeoAssistant/Controller.cpp +++ b/src/MeoAssistant/Controller.cpp @@ -413,7 +413,9 @@ std::optional asst::Controller::call_command(const std::string& cmd is_reconnect_success = reconnect_str.find("error") == std::string::npos; } if (is_reconnect_success) { - call_and_hup_minitouch(m_adb.call_minitouch); + if (call_and_hup_minitouch(m_adb.call_minitouch)) { + m_minitouch_avaiable = true; + } auto recall_ret = call_command(cmd, timeout, false /* 禁止重连避免无限递归 */, recv_by_socket); if (recall_ret) { // 重连并成功执行了