Fix incomplete send queue cleanup
Due to incomplete reset xmpp_conn_t object could not be safely reused for reconnection
This commit is contained in:
@@ -1210,6 +1210,9 @@ static void _conn_reset(xmpp_conn_t * const conn)
|
|||||||
xmpp_free(ctx, tsq->data);
|
xmpp_free(ctx, tsq->data);
|
||||||
xmpp_free(ctx, tsq);
|
xmpp_free(ctx, tsq);
|
||||||
}
|
}
|
||||||
|
conn->send_queue_head = NULL;
|
||||||
|
conn->send_queue_tail = NULL;
|
||||||
|
conn->send_queue_len = 0;
|
||||||
|
|
||||||
if (conn->stream_error) {
|
if (conn->stream_error) {
|
||||||
xmpp_stanza_release(conn->stream_error->stanza);
|
xmpp_stanza_release(conn->stream_error->stanza);
|
||||||
|
|||||||
Reference in New Issue
Block a user