summaryrefslogtreecommitdiff
path: root/toxcore/network.c
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/network.c')
-rw-r--r--toxcore/network.c6
1 files changed, 0 insertions, 6 deletions
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
338 338
339 loglogdata("O=>", data, length, ip_port, res); 339 loglogdata("O=>", data, length, ip_port, res);
340 340
341
342 if ((res >= 0) && ((uint32_t)res == length))
343 net->send_fail_eagain = 0;
344 else if ((res < 0) && (errno == EWOULDBLOCK))
345 net->send_fail_eagain = current_time_monotonic();
346
347 return res; 341 return res;
348} 342}
349 343