summaryrefslogtreecommitdiff
path: root/toxcore/Lossless_UDP.c
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/Lossless_UDP.c')
-rw-r--r--toxcore/Lossless_UDP.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/toxcore/Lossless_UDP.c b/toxcore/Lossless_UDP.c
index 83a5b338..81c2a2a5 100644
--- a/toxcore/Lossless_UDP.c
+++ b/toxcore/Lossless_UDP.c
@@ -871,7 +871,8 @@ static void do_data(Lossless_UDP *ludp)
871 if (tmp->status == 3 && sendqueue(ludp, tmp_i) != 0 && 871 if (tmp->status == 3 && sendqueue(ludp, tmp_i) != 0 &&
872 (tmp->last_sent + (1000000UL / tmp->data_rate)) <= temp_time) { 872 (tmp->last_sent + (1000000UL / tmp->data_rate)) <= temp_time) {
873 for (j = tmp->last_sent; j < temp_time; j += (1000000UL / tmp->data_rate)) 873 for (j = tmp->last_sent; j < temp_time; j += (1000000UL / tmp->data_rate))
874 send_DATA(ludp, tmp_i); 874 if (send_DATA(ludp, tmp_i) <= 0)
875 break;
875 876
876 tmp->last_sent = temp_time; 877 tmp->last_sent = temp_time;
877 878