diff --git a/frameworks/js/napi/socket/socket_module/src/socket_module.cpp b/frameworks/js/napi/socket/socket_module/src/socket_module.cpp index 9dfea3f6..e9fc105c 100644 --- a/frameworks/js/napi/socket/socket_module/src/socket_module.cpp +++ b/frameworks/js/napi/socket/socket_module/src/socket_module.cpp @@ -170,7 +170,7 @@ void FinalizeLocalSocket(napi_env, void *data, void *) { auto manager = static_cast(data); if (manager != nullptr) { - if (auto pMgr = reinterpret_cast(manager->GetData()); pMgr != nullptr) { + if (auto pMgr = reinterpret_cast(manager->GetData()); pMgr != nullptr) { NETSTACK_LOGI("localsocket handle is finalized, fd: %{public}d", pMgr->sockfd_); if (pMgr->sockfd_ > 0) { close(pMgr->sockfd_);