fix(Core/Networking): Fix crash in Proxy Protocol when removing closed sockets. (#19011)

This commit is contained in:
Anton Popovichenko 2024-06-05 11:58:50 +02:00 committed by GitHub
parent 03879617d8
commit c77f9b0fa3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -173,8 +173,8 @@ protected:
}
}
for (int removeIndex : newSocketsToRemoveIndexes)
_newSockets.erase(_newSockets.begin() + removeIndex);
for (auto it = newSocketsToRemoveIndexes.rbegin(); it != newSocketsToRemoveIndexes.rend(); ++it)
_newSockets.erase(_newSockets.begin() + *it);
}
void Run()