Skip to content

Commit

Permalink
add fix from upstream.
Browse files Browse the repository at this point in the history
  • Loading branch information
zoff99 committed Jul 29, 2022
1 parent 2832202 commit 4520785
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions toxcore/group_chats.c
Original file line number Diff line number Diff line change
Expand Up @@ -2015,9 +2015,8 @@ static bool send_gc_tcp_relays(const GC_Chat *chat, GC_Connection *gconn)
gconn->tcp_relay_share_index += GCC_MAX_TCP_SHARED_RELAYS;

for (uint32_t i = 0; i < n; ++i) {
if (add_tcp_relay_connection(chat->tcp_conn, gconn->tcp_connection_num, &tcp_relays[i].ip_port,
tcp_relays[i].public_key) != 0) {
}
add_tcp_relay_connection(chat->tcp_conn, gconn->tcp_connection_num, &tcp_relays[i].ip_port,
tcp_relays[i].public_key);
}

const int nodes_len = pack_nodes(chat->log, data, sizeof(data), tcp_relays, n);
Expand Down

0 comments on commit 4520785

Please sign in to comment.