Skip to content

Commit 79d1bbf

Browse files
xzhdreamiphydf
authored andcommitted
Update TCP_common.c
func: add_priority priority_queue_start is a list for read, priority_queue_start is just as a tag
1 parent a1e2458 commit 79d1bbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

toxcore/TCP_common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ int send_pending_data(const Logger *logger, TCP_Connection *con)
9595
non_null()
9696
static bool add_priority(TCP_Connection *con, const uint8_t *packet, uint16_t size, uint16_t sent)
9797
{
98-
TCP_Priority_List *p = con->priority_queue_end;
98+
TCP_Priority_List *p = con->priority_queue_start;
9999
TCP_Priority_List *new_list = (TCP_Priority_List *)calloc(1, sizeof(TCP_Priority_List));
100100

101101
if (new_list == nullptr) {

0 commit comments

Comments
 (0)