From 0a9c352ee1c20bfb76d3f2dcc6942a9bc97aa8b5 Mon Sep 17 00:00:00 2001 From: Martin Algesten Date: Sat, 7 Oct 2023 14:58:09 +0200 Subject: [PATCH] Send all SCTP packets This fixes a bad bug where a lot of packets were thrown away for big SCTP payload. Close #382 --- src/lib.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index e0b274d8b..a987effd4 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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; } }