update frameworks/js/napi/socket/socket_exec/src/socket_exec.cpp.

Signed-off-by: mayongzhi <mayongzhi@h-partners.com>
This commit is contained in:
mayongzhi 2024-11-11 08:27:37 +00:00 committed by Gitee
parent 7e6ecce7fb
commit bcc4855904
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -753,7 +753,7 @@ static inline void PollRecvFinish(const MessageCallback &callback)
}
}
static void ProcessPollResult(const MessageCallback &callback)
static void ProcessPollResult(int currentFd, const MessageCallback &callback)
{
if (EventManager::IsManagerValid(callback.GetEventManager()) &&
static_cast<int>(reinterpret_cast<uint64_t>(callback.GetEventManager()->GetData())) > 0) {
@ -791,7 +791,7 @@ static void PollRecvData(int sock, sockaddr *addr, socklen_t addrLen, const Mess
if (errno == EINTR) {
continue;
}
ProcessPollResult(callback);
ProcessPollResult(currentFd, callback);
break;
} else if (ret == 0) {
continue;