From 4eecaf3ee623c2c16567212e8767752ca868d28f Mon Sep 17 00:00:00 2001 From: irungentoo Date: Mon, 2 Jun 2014 19:35:49 -0400 Subject: Increased some timeouts to try to prevent disconnections when transferring files on wireless networks. --- toxcore/net_crypto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toxcore/net_crypto.c') 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 *direct_connected = 0; - if ((CRYPTO_SEND_PACKET_INTERVAL * MAX_NUM_SENDPACKET_TRIES + conn->direct_lastrecv_time) > current_time_monotonic()) + if ((UDP_DIRECT_TIMEOUT + conn->direct_lastrecv_time) > current_time_monotonic()) *direct_connected = 1; return conn->status; -- cgit v1.2.3