mirror of
https://gitee.com/openharmony/communication_netstack
synced 2024-11-27 09:02:33 +00:00
commit
f52fa3738a
@ -170,7 +170,7 @@ void FinalizeLocalSocket(napi_env, void *data, void *)
|
|||||||
{
|
{
|
||||||
auto manager = static_cast<EventManager *>(data);
|
auto manager = static_cast<EventManager *>(data);
|
||||||
if (manager != nullptr) {
|
if (manager != nullptr) {
|
||||||
if (auto pMgr = reinterpret_cast<LocalSocketServerManager *>(manager->GetData()); pMgr != nullptr) {
|
if (auto pMgr = reinterpret_cast<LocalSocketManager *>(manager->GetData()); pMgr != nullptr) {
|
||||||
NETSTACK_LOGI("localsocket handle is finalized, fd: %{public}d", pMgr->sockfd_);
|
NETSTACK_LOGI("localsocket handle is finalized, fd: %{public}d", pMgr->sockfd_);
|
||||||
if (pMgr->sockfd_ > 0) {
|
if (pMgr->sockfd_ > 0) {
|
||||||
close(pMgr->sockfd_);
|
close(pMgr->sockfd_);
|
||||||
|
Loading…
Reference in New Issue
Block a user