Skip to content

Commit 8ef4bbe

Browse files
committed
Fix the update of datachannels outbound stats in place of inbound stats when receiving DTLS packets
1 parent 12c5487 commit 8ef4bbe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ice.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -2594,8 +2594,8 @@ static void janus_ice_cb_nice_recv(NiceAgent *agent, guint stream_id, guint comp
25942594
/* If there's a datachannel medium, update the stats there too */
25952595
janus_ice_peerconnection_medium *medium = g_hash_table_lookup(pc->media_bytype, GINT_TO_POINTER(JANUS_MEDIA_DATA));
25962596
if(medium) {
2597-
medium->out_stats.info[0].packets++;
2598-
medium->out_stats.info[0].bytes += len;
2597+
medium->in_stats.info[0].packets++;
2598+
medium->in_stats.info[0].bytes += len;
25992599
}
26002600
return;
26012601
}

0 commit comments

Comments
 (0)