diff --git a/toxcore/network.c b/toxcore/network.c index 373fef9e..55c080cd 100644 --- a/toxcore/network.c +++ b/toxcore/network.c @@ -338,12 +338,6 @@ int sendpacket(Networking_Core *net, IP_Port ip_port, const uint8_t *data, uint3 loglogdata("O=>", data, length, ip_port, res); - - if ((res >= 0) && ((uint32_t)res == length)) - net->send_fail_eagain = 0; - else if ((res < 0) && (errno == EWOULDBLOCK)) - net->send_fail_eagain = current_time_monotonic(); - return res; } diff --git a/toxcore/network.h b/toxcore/network.h index da175309..1f4b757c 100644 --- a/toxcore/network.h +++ b/toxcore/network.h @@ -296,7 +296,6 @@ typedef struct { uint16_t port; /* Our UDP socket. */ sock_t sock; - uint64_t send_fail_eagain; } Networking_Core; /* Run this before creating sockets.