Skip to content

Commit

Permalink
fix loop
Browse files Browse the repository at this point in the history
  • Loading branch information
jobo-zt committed Sep 4, 2024
1 parent 222f032 commit d064cd2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -757,11 +757,12 @@ static int fd_poll(struct re *re)

for (i = 0; (i < re->maxfds) && (cfds < nfds); i++) {
fhs = re->fhsl[i];

++cfds;

if (!fhs || !fhs->fh)
continue;


++cfds;

re_sock_t fd = fhs->fd;
if (fhs->flags & FD_READ)
FD_SET(fd, &rfds);
Expand Down

0 comments on commit d064cd2

Please sign in to comment.