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-861f7616d084
master
Giel van Schijndel 2010-02-21 20:13:16 +00:00 committed by Git SVN Gateway
parent fa787fcc80
commit 401723958c
1 changed files with 5 additions and 1 deletions

View File

@ -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);