!1512 gc组无法删除

Merge pull request !1512 from lihui/master
This commit is contained in:
openharmony_ci 2023-11-30 12:41:01 +00:00 committed by Gitee
commit 147a6bc599
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -451,7 +451,13 @@ ErrCode WifiP2pServiceImpl::RemoveGroup()
WIFI_LOGE("Get P2P service failed!");
return WIFI_OPT_P2P_NOT_OPENED;
}
WifiP2pGroupInfo config;
ErrCode ret = pService->GetCurrentGroup(config);
if (ret != WIFI_OPT_SUCCESS) {
WIFI_LOGE("RemoveGroup:GetCurrentGroup failed!");
pService->RemoveGroup();
return WIFI_OPT_FAILED;
}
return pService->RemoveGroup();
}