fix(Core/Networking): Fix crash in Proxy Protocol when removing closed sockets. (#19011)
This commit is contained in:
parent
03879617d8
commit
c77f9b0fa3
1 changed files with 2 additions and 2 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue