mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-17 18:01:26 +08:00
fix: 修复连接失败析构时 call_command 空指令的问题
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user