mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-01-20 20:50:44 +00:00
BUG/MINOR: spoe: Fix counters update when processing is interrupted
When the processing is interrupted, because of a typo, <nb_sending> was incremented instead of decremented.
This commit is contained in:
parent
eba10f24b7
commit
ebe1399efe
@ -2597,7 +2597,7 @@ spoe_stop_processing(struct spoe_agent *agent, struct spoe_context *ctx)
|
||||
|
||||
if (!LIST_ISEMPTY(&ctx->list)) {
|
||||
if (ctx->state == SPOE_CTX_ST_SENDING_MSGS)
|
||||
HA_ATOMIC_ADD(&agent->counters.nb_sending, 1);
|
||||
HA_ATOMIC_SUB(&agent->counters.nb_sending, 1);
|
||||
else
|
||||
HA_ATOMIC_SUB(&agent->counters.nb_waiting, 1);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user