fix: fix task is NULL issue

This commit is contained in:
dapan1121 2022-07-02 11:29:28 +08:00
parent 1a83250215
commit 504d25a156
1 changed files with 3 additions and 1 deletions

View File

@ -856,7 +856,9 @@ int32_t schAsyncSendMsg(SSchJob *pJob, SSchTask *pTask, SSchTrans *trans, SQuery
addr->nodeId, epSet->eps[epSet->inUse].fqdn, epSet->eps[epSet->inUse].port,
trans->pTrans, trans->pHandle);
pTask->lastMsgType = msgType;
if (pTask) {
pTask->lastMsgType = msgType;
}
int64_t transporterId = 0;
code = asyncSendMsgToServerExt(trans->pTrans, epSet, &transporterId, pMsgSendInfo, persistHandle, ctx);