Skip to content

Commit

Permalink
poll: continue and print lookup error if hash_lookup fails
Browse files Browse the repository at this point in the history
  • Loading branch information
sreimers committed Jul 11, 2022
1 parent 9128bce commit 4a7152c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/main/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -925,8 +925,11 @@ static int fd_poll(struct re *re)
case METHOD_POLL:
fd = re->fds[i].fd;
le = hash_lookup(re->fhl, fd, fhs_lookup, &fd);
if (!le)
break;
if (!le) {
DEBUG_WARNING("poll: hash_lookup err fd=%d\n",
fd);
continue;
}

fhs = le->data;

Expand Down

0 comments on commit 4a7152c

Please sign in to comment.