未验证 提交 6a4baa67 编写于 作者: K kernelai 提交者: GitHub

bugfix: coredump in ubuntu when it shutdown (#1151)

issue:  https://github.com/OpenAtomFoundation/pika/issues/1152
上级 5ea6a774
......@@ -73,6 +73,7 @@ class ProxyCli : public std::enable_shared_from_this<ProxyCli> {
std::shared_ptr<std::string> resp_ptr;
};
void LostConn(const std::string& ip_port);
~ProxyCli();
private:
int cron_interval_;
......
......@@ -47,8 +47,6 @@ int ProxyCli::Start() {
int ProxyCli::Stop() {
client_ptr_->StopThread();
delete proxy_factory_;
delete proxy_handle_;
return pink::kSuccess;
}
......@@ -154,3 +152,7 @@ void ProxyCli::LostConn(const std::string& ip_port) {
delete proxy_task;
}
}
ProxyCli::~ProxyCli() {
delete proxy_factory_;
delete proxy_handle_;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册