diff options
author | irungentoo <irungentoo@gmail.com> | 2015-04-03 14:29:58 -0400 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2015-04-03 14:29:58 -0400 |
commit | 6315ff23627ba27adedf527962fec59162547af0 (patch) | |
tree | 89bef4c05157b6e7c0f7351f269db56ba0f76981 /toxcore/net_crypto.h | |
parent | 5593d7318af0e6b0398aa05c4237e2994ab2e53c (diff) |
Attempted fix of on off UDP connection causing toxcore to disconnect from
the friend.
Diffstat (limited to 'toxcore/net_crypto.h')
-rw-r--r-- | toxcore/net_crypto.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/net_crypto.h b/toxcore/net_crypto.h index ca79586f..fab72cb3 100644 --- a/toxcore/net_crypto.h +++ b/toxcore/net_crypto.h | |||
@@ -61,7 +61,7 @@ | |||
61 | #define MAX_NUM_SENDPACKET_TRIES 8 | 61 | #define MAX_NUM_SENDPACKET_TRIES 8 |
62 | 62 | ||
63 | /* The timeout of no received UDP packets before the direct UDP connection is considered dead. */ | 63 | /* The timeout of no received UDP packets before the direct UDP connection is considered dead. */ |
64 | #define UDP_DIRECT_TIMEOUT (MAX_NUM_SENDPACKET_TRIES * CRYPTO_SEND_PACKET_INTERVAL) | 64 | #define UDP_DIRECT_TIMEOUT ((MAX_NUM_SENDPACKET_TRIES * CRYPTO_SEND_PACKET_INTERVAL) / 2) |
65 | 65 | ||
66 | #define PACKET_ID_PADDING 0 /* Denotes padding */ | 66 | #define PACKET_ID_PADDING 0 /* Denotes padding */ |
67 | #define PACKET_ID_REQUEST 1 /* Used to request unreceived packets */ | 67 | #define PACKET_ID_REQUEST 1 /* Used to request unreceived packets */ |