summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--toxcore/net_crypto.c3
-rw-r--r--toxcore/net_crypto.h2
2 files changed, 3 insertions, 2 deletions
diff --git a/toxcore/net_crypto.c b/toxcore/net_crypto.c
index be450499..4c2a8faa 100644
--- a/toxcore/net_crypto.c
+++ b/toxcore/net_crypto.c
@@ -859,7 +859,8 @@ static int send_request_packet(Net_Crypto *c, int crypt_connection_id)
859 if (len == -1) 859 if (len == -1)
860 return -1; 860 return -1;
861 861
862 return send_data_packet_helper(c, crypt_connection_id, conn->recv_array.buffer_start, conn->send_array.buffer_end, data, len); 862 return send_data_packet_helper(c, crypt_connection_id, conn->recv_array.buffer_start, conn->send_array.buffer_end, data,
863 len);
863} 864}
864 865
865/* Send up to max num previously requested data packets. 866/* Send up to max num previously requested data packets.
diff --git a/toxcore/net_crypto.h b/toxcore/net_crypto.h
index 79f5da35..12817acf 100644
--- a/toxcore/net_crypto.h
+++ b/toxcore/net_crypto.h
@@ -37,7 +37,7 @@
37#define CRYPTO_PACKET_BUFFER_SIZE 16384 /* Must be a power of 2 */ 37#define CRYPTO_PACKET_BUFFER_SIZE 16384 /* Must be a power of 2 */
38 38
39/* Minimum packet rate per second. */ 39/* Minimum packet rate per second. */
40#define CRYPTO_PACKET_MIN_RATE 8.0 40#define CRYPTO_PACKET_MIN_RATE 16.0
41 41
42/* Minimum packet queue max length. */ 42/* Minimum packet queue max length. */
43#define CRYPTO_MIN_QUEUE_LENGTH 8 43#define CRYPTO_MIN_QUEUE_LENGTH 8