mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-16 01:40:46 +08:00
perf: 重连必须已经初始化
This commit is contained in:
@@ -423,7 +423,7 @@ std::optional<std::string> 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 },
|
||||
|
||||
Reference in New Issue
Block a user