perf: 重连必须已经初始化

This commit is contained in:
zzyyyl
2022-09-18 19:36:01 +08:00
parent e58a3401e0
commit 2ed51cd6a9

View File

@@ -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 },