mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Remove an old fix that didn't fix anything.
This commit is contained in:
parent
22634a4b93
commit
c84b9c4b4c
|
@ -2102,9 +2102,6 @@ static int udp_handle_packet(void *object, IP_Port source, const uint8_t *packet
|
|||
*/
|
||||
#define REQUEST_PACKETS_COMPARE_CONSTANT (0.125 * 100.0)
|
||||
|
||||
/* Multiplier for maximum allowed resends. */
|
||||
#define PACKET_RESEND_MULTIPLIER 3.5
|
||||
|
||||
/* Timeout for increasing speed after congestion event (in ms). */
|
||||
#define CONGESTION_EVENT_TIMEOUT 1000
|
||||
|
||||
|
@ -2232,7 +2229,7 @@ static void send_crypto_packets(Net_Crypto *c)
|
|||
conn->last_packets_left_set = temp_time - adj;
|
||||
}
|
||||
|
||||
int ret = send_requested_packets(c, i, conn->packets_left * PACKET_RESEND_MULTIPLIER);
|
||||
int ret = send_requested_packets(c, i, conn->packets_left);
|
||||
|
||||
if (ret != -1) {
|
||||
if ((unsigned int)ret < conn->packets_left) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user