remove innerLink

Signed-off-by: wangshuangtao <wangshuangtao4@huawei.com>
This commit is contained in:
wangshuangtao 2024-11-11 19:42:38 +08:00
parent 1b404bf36d
commit ab260afe92

View File

@ -2064,6 +2064,7 @@ void P2pV1Processor::CleanupIfNeed(int32_t reason, const std::string &remoteDevi
}
CONN_LOGI(CONN_WIFI_DIRECT, "start cleanup ctx, reason=%{public}d", reason);
(void)RemoveLink(remoteDeviceId);
LinkManager::GetInstance().RemoveLink(InnerLink::LinkType::P2P, remoteDeviceId);
}
void P2pV1Processor::Exclusive(const std::string &remoteDeviceId)