This commit is contained in:
stskeeps 2001-07-01 20:11:08 +00:00
parent c36797d8f1
commit af397fa6c2
2 changed files with 2 additions and 1 deletions

View file

@ -637,3 +637,4 @@ seen. gmtime warning still there
regarding retarded rehashes
- Added some thread debugging, and fixed a SVS2MODE bug
- Fixed a major scan bug caused by stskeeps(TM) lazy-coding
- Hmm .. minor s_bsd.c read_message fix

View file

@ -1952,7 +1952,7 @@ deadsocket:
flush_connections(cptr);
if ((length != FLUSH_BUFFER) && IsDead(cptr))
goto deadsocket;
if ((length > 0) && !FD_ISSET(cptr->fd, &read_set))
if ((length > 0) && (cptr->fd >= 0) && !FD_ISSET(cptr->fd, &read_set))
continue;
nfds--;
readcalls++;