!9086 fix:优化代理通道连接信息处理逻辑

Merge pull request !9086 from crazy_hu/master
This commit is contained in:
openharmony_ci 2025-02-19 03:46:42 +00:00 committed by Gitee
commit c1a88c0275
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -455,6 +455,7 @@ int32_t TransAddConnItem(ProxyConnInfo *chan)
LIST_FOR_EACH_ENTRY_SAFE(item, tmpItem, &g_proxyConnectionList->list, ProxyConnInfo, node) {
if (item->isServerSide == chan->isServerSide &&
item->connInfo.type == chan->connInfo.type &&
CompareConnectOption(&item->connInfo, &chan->connInfo) == true) {
(void)SoftBusMutexUnlock(&g_proxyConnectionList->lock);
return SOFTBUS_TRANS_NOT_MATCH;