From 6f3f568471fd55701a8aa3a235eac57dda226e41 Mon Sep 17 00:00:00 2001 From: Jonathan Lennox Date: Thu, 18 Jul 2024 14:23:40 -0400 Subject: [PATCH] Fix: Push packets received from ICE onto a queue. (#2196) Rather than processing them synchronously in the I/O thread. --- .../main/kotlin/org/jitsi/videobridge/relay/RelayedEndpoint.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jvb/src/main/kotlin/org/jitsi/videobridge/relay/RelayedEndpoint.kt b/jvb/src/main/kotlin/org/jitsi/videobridge/relay/RelayedEndpoint.kt index 37beba0136..e2734be1ce 100644 --- a/jvb/src/main/kotlin/org/jitsi/videobridge/relay/RelayedEndpoint.kt +++ b/jvb/src/main/kotlin/org/jitsi/videobridge/relay/RelayedEndpoint.kt @@ -188,7 +188,7 @@ class RelayedEndpoint( rtpReceiver.setSrtpTransformers(srtpTransformers) } - override fun handleIncomingPacket(packetInfo: RelayedPacketInfo) = rtpReceiver.processPacket(packetInfo) + override fun handleIncomingPacket(packetInfo: RelayedPacketInfo) = rtpReceiver.enqueuePacket(packetInfo) fun setFeature(feature: Features, enabled: Boolean) { rtpReceiver.setFeature(feature, enabled)