mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-09 08:17:56 +00:00
fix(Core/Networking): Fix crash in Proxy Protocol when removing closed sockets. (#19011)
This commit is contained in:
committed by
GitHub
parent
03879617d8
commit
c77f9b0fa3
@@ -173,8 +173,8 @@ protected:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int removeIndex : newSocketsToRemoveIndexes)
|
for (auto it = newSocketsToRemoveIndexes.rbegin(); it != newSocketsToRemoveIndexes.rend(); ++it)
|
||||||
_newSockets.erase(_newSockets.begin() + removeIndex);
|
_newSockets.erase(_newSockets.begin() + *it);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Run()
|
void Run()
|
||||||
|
|||||||
Reference in New Issue
Block a user