From 7a59f471f262454c78baaabc22c92fdcda2e3bc4 Mon Sep 17 00:00:00 2001 From: zzyyyl Date: Sat, 17 Sep 2022 02:54:40 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=BF=9E=E6=8E=A5?= =?UTF-8?q?=E5=A4=B1=E8=B4=A5=E6=9E=90=E6=9E=84=E6=97=B6=20call=5Fcommand?= =?UTF-8?q?=20=E7=A9=BA=E6=8C=87=E4=BB=A4=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 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/MeoAssistant/Controller.cpp b/src/MeoAssistant/Controller.cpp index 5b76630a60..863e959452 100644 --- a/src/MeoAssistant/Controller.cpp +++ b/src/MeoAssistant/Controller.cpp @@ -1241,7 +1241,12 @@ bool asst::Controller::release() if (m_child) #endif { - return call_command(m_adb.release).has_value(); + if (m_adb.release.empty()) { + return true; + } + else { + return call_command(m_adb.release).has_value(); + } } }