1
0
mirror of https://github.com/anope/anope.git synced 2026-06-26 10:36:38 +02:00

Fixed poll engine to not reorder sockets if we remove the last socket because there is no need

This commit is contained in:
Adam
2010-12-26 20:15:54 -05:00
parent 8af2465a61
commit 87d0fc8bb5
@@ -72,7 +72,7 @@ class SocketEnginePoll : public SocketEngineBase
return;
}
if (pos->second != SocketCount)
if (pos->second != SocketCount - 1)
{
pollfd *ev = &this->events[pos->second],
*last_ev = &this->events[SocketCount - 1];