Use a do-while loop instead

This commit is contained in:
def 2016-01-02 19:51:22 +01:00
parent eaafe4ca05
commit 7223d0ecc1

View file

@ -2582,11 +2582,11 @@ void CClient::Run()
}
for(int i = 0; i < 3; i++)
{
BindAddr.port = (secure_rand() % 64511) + 1024;
while(!m_NetClient[i].Open(BindAddr, 0))
do
{
BindAddr.port = (secure_rand() % 64511) + 1024;
}
while(!m_NetClient[i].Open(BindAddr, 0));
}
}