!8374 适配异步清理资源

Merge pull request !8374 from Kalbeleth/auth
This commit is contained in:
openharmony_ci 2024-11-21 08:32:29 +00:00 committed by Gitee
commit 24d148fef8
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -928,11 +928,13 @@ static int32_t UdpOpenAuthConn(const char *peerUdid, uint32_t requestId, bool is
ret = AuthOpenConn(&auth, requestId, &cb, isMeta);
if (ret != SOFTBUS_OK) {
TRANS_LOGE(TRANS_CTRL, "open fail: ret=%{public}d", ret);
TransCloseUdpChannelByRequestId(requestId);
return ret;
}
ret = CheckAuthConnStatus(requestId);
if (ret != SOFTBUS_OK) {
TRANS_LOGE(TRANS_CTRL, "status check failed: ret=%{public}d", ret);
TransCloseUdpChannelByRequestId(requestId);
return ret;
}