update
This commit is contained in:
@@ -30,10 +30,19 @@ void triggerManager::run()
|
||||
if(connectHost() == false)
|
||||
return;
|
||||
QThread::msleep(3000);
|
||||
int cnt = 0;
|
||||
QString heartbeatCmd = QString::fromStdString(_core._appConfig._triggerStruct.heartCmd);
|
||||
while (runFlag)
|
||||
{
|
||||
reciveCommond();
|
||||
QThread::msleep(10);
|
||||
//心跳
|
||||
cnt++;
|
||||
if (cnt > 10)
|
||||
{
|
||||
sendFinsMsg(heartbeatCmd);
|
||||
//qDebug() << "heartbeat";
|
||||
}
|
||||
}
|
||||
}
|
||||
bool triggerManager::connectHost()
|
||||
|
||||
Reference in New Issue
Block a user