Skip to content

Commit

Permalink
Fix: Push packets received from ICE onto a queue. (#2196)
Browse files Browse the repository at this point in the history
Rather than processing them synchronously in the I/O thread.
  • Loading branch information
JonathanLennox authored Jul 18, 2024
1 parent 89dde6e commit 6f3f568
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6f3f568

Please sign in to comment.