From bcc4855904150913054cb2066ba7a594c0a162c0 Mon Sep 17 00:00:00 2001 From: mayongzhi Date: Mon, 11 Nov 2024 08:27:37 +0000 Subject: [PATCH] update frameworks/js/napi/socket/socket_exec/src/socket_exec.cpp. Signed-off-by: mayongzhi --- frameworks/js/napi/socket/socket_exec/src/socket_exec.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frameworks/js/napi/socket/socket_exec/src/socket_exec.cpp b/frameworks/js/napi/socket/socket_exec/src/socket_exec.cpp index 4f9b095f..db4986ca 100644 --- a/frameworks/js/napi/socket/socket_exec/src/socket_exec.cpp +++ b/frameworks/js/napi/socket/socket_exec/src/socket_exec.cpp @@ -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(reinterpret_cast(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;