update core/transmission/trans_channel/proxy/src/softbus_proxychannel_manager.c.

modify channel of proxy death callback
This commit is contained in:
bigpumpkin 2021-07-15 07:32:37 +00:00 committed by Gitee
parent 6cd34291c0
commit 3fcb1246a7

View File

@ -1041,7 +1041,11 @@ void TransProxyDeathCallback(const char *pkgName)
}
LIST_FOR_EACH_ENTRY_SAFE(item, nextNode, &g_proxyChannelList->list, ProxyChannelInfo, node) {
if (strcmp(item->appInfo.myData.pkgName, pkgName) == 0) {
TransProxyCloseProxyChannel(item->channelId);
TransProxyResetPeer(item);
(void)TransProxyCloseConnChannel(item->connId);
ListDelete(&(item->node));
SoftBusFree(item);
g_proxyChannelList->cnt--;
continue;
}
}