mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Use a do-while loop instead
This commit is contained in:
parent
eaafe4ca05
commit
7223d0ecc1
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue