Network/SocketPoller: Fix poll implementation (Windows > Vista, Unix)
Former-commit-id: dd5517d6b15bdb2ed9be4f89ff06ddeeeb3fec30 [formerly 4aef580c50c04256503fbbdfe21924f0b97b6c09] [formerly 9d904c520de9a74292cc1af09b6a5b46617a1d49 [formerly d31432a7eb98825413abb0de333b6ceb9c2d400b]] Former-commit-id: 362f4a43f24dce67763fe4978e34da74fbd39148 [formerly 93ca7cbcd7f3368f4ecd3fa87ed512a3b55faaba] Former-commit-id: e147094e1a7c7540afb972a9ccd116d7444e0fea
This commit is contained in:
parent
62be0e21df
commit
48ef3f6b30
|
|
@ -76,12 +76,13 @@ namespace Nz
|
|||
m_activeSockets.clear();
|
||||
if (activeSockets > 0U)
|
||||
{
|
||||
int socketRemaining = activeSockets;
|
||||
for (PollSocket& entry : m_sockets)
|
||||
{
|
||||
if (entry.revents & POLLRDNORM)
|
||||
{
|
||||
m_activeSockets.insert(entry.fd);
|
||||
if (--activeSockets == 0)
|
||||
if (--socketRemaining == 0)
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -112,12 +112,13 @@ namespace Nz
|
|||
m_activeSockets.clear();
|
||||
if (activeSockets > 0U)
|
||||
{
|
||||
int socketRemaining = activeSockets;
|
||||
for (PollSocket& entry : m_sockets)
|
||||
{
|
||||
if (entry.revents & POLLRDNORM)
|
||||
{
|
||||
m_activeSockets.insert(entry.fd);
|
||||
if (--activeSockets == 0)
|
||||
if (--socketRemaining == 0)
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue