off-by-one

This commit is contained in:
leitner 2007-01-26 14:16:14 +00:00
parent 689de0e8e4
commit 1b88982d19

View File

@ -14,7 +14,7 @@ int64 io_timeouted() {
if (e->inuse && e->timeout.sec.x && taia_less(&e->timeout,&now)) if (e->inuse && e->timeout.sec.x && taia_less(&e->timeout,&now))
return ptr; return ptr;
} }
ptr=0; /* this is for really pathological cases, where more ptr=-1; /* this is for really pathological cases, where more
connections come in all the time and so the timeout connections come in all the time and so the timeout
handling does not trigger initially */ handling does not trigger initially */
return -1; return -1;