Skip to content

Commit a0cc80c

Browse files
committed
fixed:forward not free client when destroy
1 parent f13af2a commit a0cc80c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

XEngine_Source/XEngine_ServiceApp/XEngine_ServiceApp.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ void ServiceApp_Stop(int signo)
4343
NetCore_TCPXCore_DestroyEx(xhForwardSocket);
4444
SocketOpt_HeartBeat_DestoryEx(xhForwardHeart);
4545
ManagePool_Thread_NQDestroy(xhForwardPool);
46+
XClient_TCPSelect_StopEx(xhForwardClient);
4647
//销毁proxy资源
4748
NetCore_TCPXCore_DestroyEx(xhProxySocket);
4849
SocketOpt_HeartBeat_DestoryEx(xhProxyHeart);
@@ -405,6 +406,7 @@ int main(int argc, char** argv)
405406
NetCore_TCPXCore_DestroyEx(xhForwardSocket);
406407
SocketOpt_HeartBeat_DestoryEx(xhForwardHeart);
407408
ManagePool_Thread_NQDestroy(xhForwardPool);
409+
XClient_TCPSelect_StopEx(xhForwardClient);
408410
//销毁proxy资源
409411
NetCore_TCPXCore_DestroyEx(xhProxySocket);
410412
SocketOpt_HeartBeat_DestoryEx(xhProxyHeart);

0 commit comments

Comments
 (0)