summaryrefslogtreecommitdiff
path: root/toxcore/net_crypto.c
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2014-06-02 19:35:49 -0400
committerirungentoo <irungentoo@gmail.com>2014-06-02 19:35:49 -0400
commit4eecaf3ee623c2c16567212e8767752ca868d28f (patch)
treee10992b4f9073184beb07942e8757aaa3b4243e4 /toxcore/net_crypto.c
parentad20432494226be9c063e76583aef956faad9e37 (diff)
Increased some timeouts to try to prevent disconnections when
transferring files on wireless networks.
Diffstat (limited to 'toxcore/net_crypto.c')
-rw-r--r--toxcore/net_crypto.c2
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;