diff --git a/core/transmission/trans_channel/proxy/src/softbus_proxychannel_manager.c b/core/transmission/trans_channel/proxy/src/softbus_proxychannel_manager.c index 6c1202faf..e0bd463ba 100644 --- a/core/transmission/trans_channel/proxy/src/softbus_proxychannel_manager.c +++ b/core/transmission/trans_channel/proxy/src/softbus_proxychannel_manager.c @@ -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;