chore: use ranged for in ClientListener::cleanupClientSockets

This commit is contained in:
sithlord48 2025-05-23 01:39:39 -04:00 committed by Chris Rizzitello
parent 647201cd37
commit a4f1a382d3

View file

@ -235,9 +235,8 @@ void ClientListener::cleanupListenSocket()
void ClientListener::cleanupClientSockets()
{
ClientSockets::iterator it;
for (it = m_clientSockets.begin(); it != m_clientSockets.end(); it++) {
delete *it;
for (auto client : m_clientSockets) {
delete client;
}
m_clientSockets.clear();
}