summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2013-09-20 22:13:59 -0400
committerirungentoo <irungentoo@gmail.com>2013-09-20 22:13:59 -0400
commit63126241eb0455d3d1cd8d5561ccc229248acd39 (patch)
treedae97b65569fcb1391ca7e2fd65795bb28162f2e
parent892c7aa2668b075e694df83cd00544101569ede0 (diff)
Small fix in Lossless UDP.
-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