Skip to content

Commit 7e6056c

Browse files
committed
Add a check after configuration update
1 parent 66fd046 commit 7e6056c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/ex_webrtc/peer_connection/configuration.ex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,9 @@ defmodule ExWebRTC.PeerConnection.Configuration do
433433
config
434434
|> update_extensions(sdp)
435435
|> update_codecs(sdp)
436+
# if update went wrong (there are duplicates in payload types),
437+
# we should never continue as this may lead to hard to debug errors
438+
|> ensure_unique_payload_types()
436439
end
437440

438441
defp update_extensions(config, sdp) do

0 commit comments

Comments
 (0)