diff --git a/client/client.cpp b/client/client.cpp index 0bc3e74..0711e71 100644 --- a/client/client.cpp +++ b/client/client.cpp @@ -69,10 +69,17 @@ void CClient::run(const std::string& ip, const std::string& port, const std::str std::thread thread([&]() { io_context_.run(); }); th_down_active_ = std::thread([&]() { judget_down_active(); }); - auto* bf = new CFrameBuffer(); - bf->type_ = TYPE_GET_ID; - send_frame(bf); - delete bf; + { + auto* bf = new CFrameBuffer(); + bf->type_ = TYPE_GET_ID; + send_frame(bf); + delete bf; + } + + if (ip == "127.0.0.1") { + get_task_list(); + } + TLOGI("version: {}", VERSION_NUM); TLOGI("opensource: {}", VERSION_URL); TLOGW("SupportCmd ==>");