mirror of
https://gitee.com/openharmony/communication_netstack
synced 2024-11-23 06:50:46 +00:00
update frameworks/js/napi/socket/socket_exec/src/socket_exec.cpp.
Signed-off-by: mayongzhi <mayongzhi@h-partners.com>
This commit is contained in:
parent
7e6ecce7fb
commit
bcc4855904
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user