Fixes small bug in query resend while changing session
This commit is contained in:
parent
e179f25fe9
commit
13aab3bbd5
@ -112,7 +112,9 @@ static int alarm_query (struct query *q) {
|
||||
|
||||
tglmp_encrypt_send_message (q->session->c, packet_buffer, packet_ptr - packet_buffer, q->flags & QUERY_FORCE_SEND);
|
||||
} else {
|
||||
queries_tree = tree_delete_query (queries_tree, q);
|
||||
q->msg_id = tglmp_encrypt_send_message (q->session->c, q->data, q->data_len, (q->flags & QUERY_FORCE_SEND) | 1);
|
||||
queries_tree = tree_insert_query (queries_tree, q, lrand48 ());
|
||||
q->session_id = q->session->session_id;
|
||||
if (!(q->session->dc->flags & 4) && !(q->flags & QUERY_FORCE_SEND)) {
|
||||
q->session_id = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user