Merge branch 'master' of https://github.com/Tilka/uhub
This commit is contained in:
commit
c5516b5729
@ -78,10 +78,11 @@ int net_backend_poll_select(struct net_backend* data, int ms)
|
||||
res = select(backend->maxfd, &backend->rfds, &backend->wfds, &backend->xfds, &tval);
|
||||
if (res == -1)
|
||||
{
|
||||
if (net_error() == EINTR)
|
||||
return 0;
|
||||
|
||||
printf("Error: %d\n", net_error());
|
||||
}
|
||||
if (res == -1 && net_error() == EINTR)
|
||||
return 0;
|
||||
|
||||
return res;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user