Compute correct send_queue_len.
Previously this was incremented, but not decremented. I've corrected the code to decrement it. It doesn't appear to be used anywhere, but it is helpful to implement xmpp_graceful_stop().
This commit is contained in:
committed by
Dmitry Podgorny
parent
233094af10
commit
936ddb0d15
@@ -147,6 +147,7 @@ void xmpp_run_once(xmpp_ctx_t *ctx, const unsigned long timeout)
|
||||
xmpp_free(ctx, sq->data);
|
||||
tsq = sq;
|
||||
sq = sq->next;
|
||||
conn->send_queue_len--;
|
||||
xmpp_free(ctx, tsq);
|
||||
|
||||
/* pop the top item */
|
||||
|
||||
Reference in New Issue
Block a user