spdlog::warn("evmgr {} failed to find the connecting/disconnecting module with id {} in config. please check if it was terminated correctly",devSn,selfId);
return-1;
}
...
...
@@ -294,6 +308,7 @@ protected:
{
boolbStopSig=false;
intret=0;
while(true){
if(checkStop()==true){
bStopSig=true;
...
...
@@ -304,20 +319,6 @@ protected:
// exit(1);
// }
thCloudMsgHandler=thread([this]{
while(true)
{
autobody=z_recv_multiple(pDealer,false);
if(body.size()==0){
spdlog::error("evslicer {} failed to receive multiple msg: {}",this->devSn,zmq_strerror(zmq_errno()));
continue;
}
// full proto msg received.
this->handleCloudMsg(body);
}
});
thCloudMsgHandler.detach();
autobody=z_recv_multiple(pRouter,false);
if(body.size()==0){
spdlog::error("evmgr {} failed to receive multiple msg: {}",devSn,zmq_strerror(zmq_errno()));