Skip to content

Commit 2b91f33

Browse files
Fix current direction update when applying answer (#268)
When applying an answer from the remote the value of `current_direction`was correctly update, but the process to trigger any side effect was incorrectly using `direction` instead of `current_direction` to determine the previous direction.
1 parent 5ffaf74 commit 2b91f33

File tree

1 file changed

+1
-1
lines changed
  • webrtc/src/peer_connection

1 file changed

+1
-1
lines changed

webrtc/src/peer_connection/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1464,7 +1464,7 @@ impl RTCPeerConnection {
14641464
}
14651465

14661466
if let Some(t) = find_by_mid(mid_value, &mut local_transceivers).await {
1467-
let previous_direction = t.direction();
1467+
let previous_direction = t.current_direction();
14681468

14691469
// 4.5.9.2.9
14701470
// Let direction be an RTCRtpTransceiverDirection value representing the direction

0 commit comments

Comments
 (0)