diff options
Diffstat (limited to 'toxcore/TCP_connection.c')
-rw-r--r-- | toxcore/TCP_connection.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/toxcore/TCP_connection.c b/toxcore/TCP_connection.c index adef3175..411589bf 100644 --- a/toxcore/TCP_connection.c +++ b/toxcore/TCP_connection.c | |||
@@ -1398,7 +1398,7 @@ TCP_Connections *new_tcp_connections(Mono_Time *mono_time, const uint8_t *secret | |||
1398 | return temp; | 1398 | return temp; |
1399 | } | 1399 | } |
1400 | 1400 | ||
1401 | static void do_tcp_conns(TCP_Connections *tcp_c, void *userdata) | 1401 | static void do_tcp_conns(const Logger *logger, TCP_Connections *tcp_c, void *userdata) |
1402 | { | 1402 | { |
1403 | unsigned int i; | 1403 | unsigned int i; |
1404 | 1404 | ||
@@ -1407,7 +1407,7 @@ static void do_tcp_conns(TCP_Connections *tcp_c, void *userdata) | |||
1407 | 1407 | ||
1408 | if (tcp_con) { | 1408 | if (tcp_con) { |
1409 | if (tcp_con->status != TCP_CONN_SLEEPING) { | 1409 | if (tcp_con->status != TCP_CONN_SLEEPING) { |
1410 | do_TCP_connection(tcp_c->mono_time, tcp_con->connection, userdata); | 1410 | do_TCP_connection(logger, tcp_c->mono_time, tcp_con->connection, userdata); |
1411 | 1411 | ||
1412 | /* callbacks can change TCP connection address. */ | 1412 | /* callbacks can change TCP connection address. */ |
1413 | tcp_con = get_tcp_connection(tcp_c, i); | 1413 | tcp_con = get_tcp_connection(tcp_c, i); |
@@ -1485,9 +1485,9 @@ static void kill_nonused_tcp(TCP_Connections *tcp_c) | |||
1485 | } | 1485 | } |
1486 | } | 1486 | } |
1487 | 1487 | ||
1488 | void do_tcp_connections(TCP_Connections *tcp_c, void *userdata) | 1488 | void do_tcp_connections(const Logger *logger, TCP_Connections *tcp_c, void *userdata) |
1489 | { | 1489 | { |
1490 | do_tcp_conns(tcp_c, userdata); | 1490 | do_tcp_conns(logger, tcp_c, userdata); |
1491 | kill_nonused_tcp(tcp_c); | 1491 | kill_nonused_tcp(tcp_c); |
1492 | } | 1492 | } |
1493 | 1493 | ||