fix: 修复连接失败析构时 call_command 空指令的问题

This commit is contained in:
zzyyyl
2022-09-17 02:54:40 +08:00
parent cd87b8a22f
commit 7a59f471f2

View File

@@ -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();
}
}
}