mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Break early out of loop
This commit is contained in:
parent
38c8b5b019
commit
e54f0ee97b
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue