mirror of
https://gitee.com/openharmony/communication_dsoftbus
synced 2024-11-24 01:09:51 +00:00
fix: get status in proxy channel when recv server side reset msg
Signed-off-by: baiyuxin <baiyuxin3@huawei.com>
This commit is contained in:
parent
041b115ec9
commit
afe6471a04
@ -708,7 +708,7 @@ static int32_t TransProxyGetAppInfo(int16_t myId, AppInfo *appInfo)
|
||||
return SOFTBUS_ERR;
|
||||
}
|
||||
|
||||
static int32_t TransProxyGetReqId(int32_t myId, int32_t *reqId)
|
||||
static int32_t TransProxyGetReqIdAndStatus(int32_t myId, int32_t *reqId, int8_t *status)
|
||||
{
|
||||
TRANS_CHECK_AND_RETURN_RET_LOGE(
|
||||
g_proxyChannelList != NULL, SOFTBUS_NO_INIT, TRANS_CTRL, "proxy channel list not init");
|
||||
@ -719,6 +719,7 @@ static int32_t TransProxyGetReqId(int32_t myId, int32_t *reqId)
|
||||
LIST_FOR_EACH_ENTRY(item, &g_proxyChannelList->list, ProxyChannelInfo, node) {
|
||||
if (item->myId == myId) {
|
||||
*reqId = item->reqId;
|
||||
*status = item->status;
|
||||
(void)SoftBusMutexUnlock(&g_proxyChannelList->lock);
|
||||
return SOFTBUS_OK;
|
||||
}
|
||||
@ -1307,7 +1308,7 @@ void TransProxyProcessResetMsg(const ProxyMessage *msg)
|
||||
return;
|
||||
}
|
||||
|
||||
if (TransProxyGetReqId(info->myId, &info->reqId) != SOFTBUS_OK) {
|
||||
if (TransProxyGetReqIdAndStatus(info->myId, &info->reqId, &info->status) != SOFTBUS_OK) {
|
||||
TRANS_LOGE(TRANS_CTRL, "fail to get conn reqId");
|
||||
SoftBusFree(info);
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user