chore.同步回调消息

This commit is contained in:
MistEO
2022-03-08 10:08:55 +08:00
parent cc345a80ae
commit 78c61eeb80

View File

@@ -618,7 +618,12 @@ bool asst::Controller::connect(const std::string & adb_path, const std::string &
json::value info = json::object{
{ "what", "ConnectFailed" },
{ "why", "ConfigNotFound" },
{ "details", json::object{} }
{ "uuid", ""},
{ "details", json::object {
{ "adb", adb_path },
{ "address", address },
{ "config", config }
}}
};
m_callback(AsstMsg::ConnectionInfo, info, m_callback_arg);
return false;
@@ -652,8 +657,7 @@ bool asst::Controller::connect(const std::string & adb_path, const std::string &
{ "details", json::object {
{ "adb", adb_path },
{ "address", address },
{ "config", config },
{ "uuid", "" }
{ "config", config }
}}
};
m_callback(AsstMsg::ConnectionInfo, info, m_callback_arg);