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:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user