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:
Christopher Faulet 2018-04-26 11:33:44 +02:00 committed by Willy Tarreau
parent eba10f24b7
commit ebe1399efe

View File

@ -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);