Attempted fix of on off UDP connection causing toxcore to disconnect from

the friend.
This commit is contained in:
irungentoo 2015-04-03 14:29:58 -04:00
parent 5593d7318a
commit 6315ff2362
No known key found for this signature in database
GPG Key ID: 10349DC9BED89E98

View File

@ -61,7 +61,7 @@
#define MAX_NUM_SENDPACKET_TRIES 8 #define MAX_NUM_SENDPACKET_TRIES 8
/* The timeout of no received UDP packets before the direct UDP connection is considered dead. */ /* The timeout of no received UDP packets before the direct UDP connection is considered dead. */
#define UDP_DIRECT_TIMEOUT (MAX_NUM_SENDPACKET_TRIES * CRYPTO_SEND_PACKET_INTERVAL) #define UDP_DIRECT_TIMEOUT ((MAX_NUM_SENDPACKET_TRIES * CRYPTO_SEND_PACKET_INTERVAL) / 2)
#define PACKET_ID_PADDING 0 /* Denotes padding */ #define PACKET_ID_PADDING 0 /* Denotes padding */
#define PACKET_ID_REQUEST 1 /* Used to request unreceived packets */ #define PACKET_ID_REQUEST 1 /* Used to request unreceived packets */