Small fix in Lossless UDP.

This commit is contained in:
irungentoo 2013-09-20 22:13:59 -04:00
parent 892c7aa266
commit 63126241eb

View File

@ -871,7 +871,8 @@ static void do_data(Lossless_UDP *ludp)
if (tmp->status == 3 && sendqueue(ludp, tmp_i) != 0 &&
(tmp->last_sent + (1000000UL / tmp->data_rate)) <= temp_time) {
for (j = tmp->last_sent; j < temp_time; j += (1000000UL / tmp->data_rate))
send_DATA(ludp, tmp_i);
if (send_DATA(ludp, tmp_i) <= 0)
break;
tmp->last_sent = temp_time;