mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-15 16:04:37 +00:00
MINOR: startup: don't rely on PR_STNEW to check for listeners
Instead of looking at listeners in proxies in PR_STNEW state, we'd rather check for listeners in those not in PR_STSTOPPED as it's only this state which indicates the proxy was disabled. And let's check the listeners count instead of testing the list's head.
This commit is contained in:
parent
f18d968830
commit
b50bf046e8
@ -2010,7 +2010,7 @@ static void init(int argc, char **argv)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
for (px = proxies_list; px; px = px->next)
|
for (px = proxies_list; px; px = px->next)
|
||||||
if (px->state == PR_STNEW && !LIST_ISEMPTY(&px->conf.listeners))
|
if (px->state != PR_STSTOPPED && px->li_all)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
if (pr || px) {
|
if (pr || px) {
|
||||||
|
Loading…
Reference in New Issue
Block a user