Skip to content

Commit

Permalink
Send all SCTP packets
Browse files Browse the repository at this point in the history
This fixes a bad bug where a lot of packets were thrown away
for big SCTP payload.

Close #382
  • Loading branch information
algesten committed Oct 8, 2023
1 parent 6f688da commit 99421ec
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1272,6 +1272,11 @@ impl Rtc {
}
}
packets.pop_front();
// If there are still packets, they are sent on next
// poll_output()
if !packets.is_empty() {
self.sctp.push_back_transmit(packets);
}
break;
}
}
Expand Down

0 comments on commit 99421ec

Please sign in to comment.