From f71a4ef0fdc74e33bf259c8ffb4195fc4d7a7d08 Mon Sep 17 00:00:00 2001 From: azw Date: Sun, 7 May 2023 01:21:54 +0000 Subject: [PATCH] 1 --- server/wsproxy/app.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/server/wsproxy/app.cc b/server/wsproxy/app.cc index b45c0e0..aa610ad 100644 --- a/server/wsproxy/app.cc +++ b/server/wsproxy/app.cc @@ -25,6 +25,7 @@ #include "upstreammgr.h" #include "master.h" #include "mastermgr.h" +#include "iomgr.h" #include "longsessionmgr.h" @@ -127,6 +128,9 @@ bool App::Init(int argc, char* argv[]) f8::Timer::Instance()->Init(); JsonDataMgr::Instance()->Init(); uuid_->SetMachineId((node_id_ - 1) * MAX_NODE_ID + instance_id_); + #ifdef USE_ASIO + IoMgr::Instance()->Init(); + #endif DownStreamMgr::Instance()->Init(); MasterMgr::Instance()->Init(); UpStreamMgr::Instance()->Init(); @@ -189,6 +193,9 @@ void App::UnInit() MasterMgr::Instance()->UnInit(); UpStreamMgr::Instance()->UnInit(); DownStreamMgr::Instance()->UnInit(); + #ifdef USE_ASIO + IoMgr::Instance()->UnInit(); + #endif JsonDataMgr::Instance()->UnInit(); f8::Timer::Instance()->UnInit(); f8::MsgQueue::Instance()->UnInit();