This commit is contained in:
aozhiwei 2023-04-24 10:36:42 +08:00
parent ff48ed0a67
commit adeaac6e1d

View File

@ -450,9 +450,9 @@ void App::ProcessTargetServerMsg(f8::MsgHdr& hdr)
DownStreamMgr::Instance()->BindUpStream(hdr.socket_handle, hdr.ip_saddr);
GCListener::Instance()->MarkClient(hdr.socket_handle, true);
}
auto down = DownStreamMgr::Instance()->GetDownStream(hdr.socket_handle);
if (!down.expired()) {
down.lock()->ForwardUpStreamMsg(hdr);
auto down_wp = DownStreamMgr::Instance()->GetDownStream(hdr.socket_handle);
if (!down_wp.expired()) {
down_wp.lock()->ForwardUpStreamMsg(hdr);
}
}