diff options
Diffstat (limited to 'toxcore/net_crypto.c')
-rw-r--r-- | toxcore/net_crypto.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/net_crypto.c b/toxcore/net_crypto.c index b29184e2..033f494b 100644 --- a/toxcore/net_crypto.c +++ b/toxcore/net_crypto.c | |||
@@ -2427,7 +2427,7 @@ unsigned int crypto_connection_status(Net_Crypto *c, int crypt_connection_id, ui | |||
2427 | 2427 | ||
2428 | *direct_connected = 0; | 2428 | *direct_connected = 0; |
2429 | 2429 | ||
2430 | if ((CRYPTO_SEND_PACKET_INTERVAL * MAX_NUM_SENDPACKET_TRIES + conn->direct_lastrecv_time) > current_time_monotonic()) | 2430 | if ((UDP_DIRECT_TIMEOUT + conn->direct_lastrecv_time) > current_time_monotonic()) |
2431 | *direct_connected = 1; | 2431 | *direct_connected = 1; |
2432 | 2432 | ||
2433 | return conn->status; | 2433 | return conn->status; |