Skip to content

Commit

Permalink
bugfix: no need check for pc->connection != NULL
Browse files Browse the repository at this point in the history
  • Loading branch information
detailyang committed Jan 12, 2017
1 parent 13c5e10 commit f97c345
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ngx_http_upstream_check_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -1066,9 +1066,8 @@ ngx_http_upstream_check_begin_handler(ngx_event_t *event)
ngx_add_timer(event, ucscf->check_interval / 2);

/* This process is processing this peer now. */
if ((peer->shm->owner == ngx_pid ||
(peer->pc.connection != NULL) ||
peer->check_timeout_ev.timer_set)) {
if (peer->shm->owner == ngx_pid ||
peer->check_timeout_ev.timer_set) {
return;
}

Expand Down

0 comments on commit f97c345

Please sign in to comment.