Break early out of loop

This commit is contained in:
ChillerDragon 2022-05-23 08:26:57 +02:00
parent 38c8b5b019
commit e54f0ee97b

View file

@ -2832,8 +2832,13 @@ int CServer::Run()
NonActive = true;
for(auto &Client : m_aClients)
{
if(Client.m_State != CClient::STATE_EMPTY)
{
NonActive = false;
break;
}
}
// wait for incoming data
if(NonActive)