Skip to content
This repository was archived by the owner on Oct 29, 2021. It is now read-only.

Commit 936ddb0

Browse files
ghamlin0pasis
authored andcommitted
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().
1 parent 233094a commit 936ddb0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/event.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ void xmpp_run_once(xmpp_ctx_t *ctx, const unsigned long timeout)
147147
xmpp_free(ctx, sq->data);
148148
tsq = sq;
149149
sq = sq->next;
150+
conn->send_queue_len--;
150151
xmpp_free(ctx, tsq);
151152

152153
/* pop the top item */

0 commit comments

Comments
 (0)