mirror of https://github.com/TarsCloud/TarsCpp
fix servantproxy may crash when ctrl+c
parent
bdcef297e6
commit
cc4e4afa4a
|
@ -1560,6 +1560,11 @@ void ServantProxy::selectNetThreadInfo(ServantProxyThreadData *pSptd, ObjectProx
|
|||
}
|
||||
}
|
||||
|
||||
if(communicatorEpollInfo->_communicator->isTerminating())
|
||||
{
|
||||
throw TarsCommunicatorException("communicator may deconstruct");
|
||||
}
|
||||
|
||||
assert(communicatorEpollInfo->_netSeq < _communicator->getCommunicatorEpollNum());
|
||||
|
||||
//循环使用下一个网络线程发送数据
|
||||
|
|
Loading…
Reference in New Issue