mirror of
https://github.com/anope/anope.git
synced 2026-06-26 05:26:37 +02:00
Made socket engine stop processing once all sockets have been checked
This commit is contained in:
@@ -137,9 +137,13 @@ class SocketEnginePoll : public SocketEngineBase
|
||||
return;
|
||||
}
|
||||
|
||||
for (int i = 0; i < total; ++i)
|
||||
for (int i = 0, processed = 0; i < SocketCount && processed != total; ++i)
|
||||
{
|
||||
pollfd *ev = &this->events[i];
|
||||
|
||||
if (ev->revents != 0)
|
||||
++processed;
|
||||
|
||||
Socket *s = Sockets[ev->fd];
|
||||
|
||||
if (s->HasFlag(SF_DEAD))
|
||||
|
||||
Reference in New Issue
Block a user