mirror of
https://gitee.com/openharmony/developtools_hdc
synced 2024-11-23 15:12:24 +00:00
!1565 优化task任务执行时,发送消息的处理逻辑
Merge pull request !1565 from wenlong_12/20240919-18.37
This commit is contained in:
commit
a860c3f43e
@ -65,6 +65,11 @@ bool HdcTaskBase::SendToAnother(const uint16_t command, uint8_t *bufPtr, const i
|
||||
return true;
|
||||
} else {
|
||||
HdcSessionBase *sessionBase = reinterpret_cast<HdcSessionBase *>(taskInfo->ownerSessionClass);
|
||||
if (sessionBase->IsSessionDeleted(taskInfo->sessionId)) {
|
||||
WRITE_LOG(LOG_FATAL, "SendToAnother session is deleted channelId:%u command:%u",
|
||||
taskInfo->channelId, command);
|
||||
return false;
|
||||
}
|
||||
return sessionBase->Send(taskInfo->sessionId, taskInfo->channelId, command, bufPtr, size) > 0;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user