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:
Garick Hamlin
2012-11-05 15:14:40 -05:00
committed by Dmitry Podgorny
parent 233094af10
commit 936ddb0d15

View File

@@ -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 */