mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-26 20:11:47 +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));
|
M_Memcpy(&tset, &wset, sizeof (tset));
|
||||||
res = select(255, NULL, &tset, NULL, &select_timeout);
|
res = select(255, NULL, &tset, NULL, &select_timeout);
|
||||||
|
if (res == -1)
|
||||||
|
return ConnectionFailedwerrno(errno);
|
||||||
if (res == 0)/* nothing selected */
|
if (res == 0)/* nothing selected */
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue