aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/http/modules/ngx_http_upstream_ip_hash_module.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/http/modules/ngx_http_upstream_ip_hash_module.c b/src/http/modules/ngx_http_upstream_ip_hash_module.c
index e0cf8afc1..87e5ac4d2 100644
--- a/src/http/modules/ngx_http_upstream_ip_hash_module.c
+++ b/src/http/modules/ngx_http_upstream_ip_hash_module.c
@@ -179,11 +179,10 @@ ngx_http_upstream_get_ip_hash_peer(ngx_peer_connection_t *pc, void *data)
peer->fails = 0;
break;
}
-
- } else {
- iphp->rrp.tried[n] |= m;
}
+ iphp->rrp.tried[n] |= m;
+
/* ngx_unlock_mutex(iphp->rrp.peers->mutex); */
pc->tries--;