mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-26 12:21:19 +00:00
Check error on select
This commit is contained in:
parent
4d739fe7a5
commit
aa4ce2b2d1
1 changed files with 2 additions and 0 deletions
|
@ -701,6 +701,8 @@ static INT32 AddToMasterServer(boolean firstadd)
|
|||
|
||||
M_Memcpy(&tset, &wset, sizeof (tset));
|
||||
res = select(255, NULL, &tset, NULL, &select_timeout);
|
||||
if (res == -1)
|
||||
return ConnectionFailedwerrno(errno);
|
||||
if (res == 0)/* nothing selected */
|
||||
{
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue