From 2ed51cd6a970c0e3dc00e071b59fcbfe6ef525ba Mon Sep 17 00:00:00 2001 From: zzyyyl Date: Sun, 18 Sep 2022 19:36:01 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E9=87=8D=E8=BF=9E=E5=BF=85=E9=A1=BB?= =?UTF-8?q?=E5=B7=B2=E7=BB=8F=E5=88=9D=E5=A7=8B=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/MeoAssistant/Controller.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MeoAssistant/Controller.cpp b/src/MeoAssistant/Controller.cpp index 6386d98cdb..c3cebbeec3 100644 --- a/src/MeoAssistant/Controller.cpp +++ b/src/MeoAssistant/Controller.cpp @@ -423,7 +423,7 @@ std::optional asst::Controller::call_command(const std::string& cmd if (!exit_ret) { return recv_by_socket ? sock_data : pipe_data; } - else if (allow_reconnect) { + else if (inited() && allow_reconnect) { // 之前可以运行,突然运行不了了,这种情况多半是 adb 炸了。所以重新连接一下 json::value reconnect_info = json::object { { "uuid", m_uuid },