t->error = 0;
pfwd->check_fd = 0;
ret = btr_node_status(wn->btrn, wn->min_iqs);
- if (ret >= 0) {
+ if (ret > 0) {
para_fd_set(pfwd->fd, &s->wfds, &s->max_fileno);
pfwd->check_fd = 1;
- }
- if (ret != 0) {
+ } else if (ret < 0) {
s->timeout.tv_sec = 0;
s->timeout.tv_usec = 1;
}