mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-02-18 03:22:35 +00:00
Check error on select
This commit is contained in:
parent
50ae248b84
commit
1d77716d7e
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…
Add table
Reference in a new issue