!2875 begetctl appspawntime_cmd代码优化

Merge pull request !2875 from 林楠木/master
This commit is contained in:
openharmony_ci 2024-06-03 12:54:52 +00:00 committed by Gitee
commit 9c6621e0a5
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -39,6 +39,10 @@ static int SendAppspawnTimeMessage(const CmdAgent *agent, uint16_t type, const c
BEGET_ERROR_CHECK(ret == 0, return -1, "AppSpawnClientInit error, errno = %d", errno);
AppSpawnReqMsgHandle reqHandle;
ret = AppSpawnReqMsgCreate(MSG_BEGET_SPAWNTIME, "init", &reqHandle);
if (ret != 0) {
AppSpawnClientDestroy(clientHandle);
return -1;
}
AppSpawnResult result = {};
ret = AppSpawnClientSendMsg(clientHandle, reqHandle, &result);
if (ret != 0) {