Skip to content

Commit

Permalink
squash: Also aply stats re-order to Relay.
Browse files Browse the repository at this point in the history
  • Loading branch information
bgrozev committed Jun 5, 2024
1 parent 826545c commit b56b14f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions jvb/src/main/kotlin/org/jitsi/videobridge/relay/Relay.kt
Original file line number Diff line number Diff line change
Expand Up @@ -766,16 +766,14 @@ class Relay @JvmOverloads constructor(

fun doSendSrtp(packetInfo: PacketInfo): Boolean {
packetInfo.addEvent(SRTP_QUEUE_EXIT_EVENT)
PacketTransitStats.packetSent(packetInfo)

iceTransport.send(packetInfo.packet.buffer, packetInfo.packet.offset, packetInfo.packet.length)
PacketTransitStats.packetSent(packetInfo)
ByteBufferPool.returnBuffer(packetInfo.packet.buffer)
packetInfo.sent()

if (timelineLogger.isTraceEnabled && Endpoint.logTimeline()) {
timelineLogger.trace { packetInfo.timeline.toString() }
}

iceTransport.send(packetInfo.packet.buffer, packetInfo.packet.offset, packetInfo.packet.length)
ByteBufferPool.returnBuffer(packetInfo.packet.buffer)
return true
}

Expand Down

0 comments on commit b56b14f

Please sign in to comment.