Make backtraces regarding FD_SET related crashes (see #1136) more useful
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9950 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
fa787fcc80
commit
401723958c
|
@ -739,7 +739,11 @@ static int checkSockets(const SocketSet* set, unsigned int timeout)
|
|||
for (i = 0; i < set->len; ++i)
|
||||
{
|
||||
if (set->fds[i])
|
||||
FD_SET(set->fds[i]->fd[SOCK_CONNECTION], &fds);
|
||||
{
|
||||
const SOCKET fd = set->fds[i]->fd[SOCK_CONNECTION];
|
||||
|
||||
FD_SET(fd, &fds);
|
||||
}
|
||||
}
|
||||
|
||||
ret = select(maxfd + 1, &fds, NULL, NULL, &tv);
|
||||
|
|
Loading…
Reference in New Issue