Skip to content

Commit

Permalink
Fix peerconnetcion connecting state
Browse files Browse the repository at this point in the history
The peerconnection state should transit to connecting if
icestate is checking or dtls connecting
  • Loading branch information
cnderrauber committed Mar 3, 2023
1 parent 1e5378a commit fc2a78b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions AUTHORS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,13 @@ Aleksandr Razumov <ar@gortc.io>
aler9 <46489434+aler9@users.noreply.github.com>
Alex Browne <stephenalexbrowne@gmail.com>
Alex Harford <harford@gmail.com>
Alexey Khit <alexey.khit@gmail.com>
AlexWoo(武杰) <wj19840501@gmail.com>
Ali Error <alipadida@live.com>
Andrew N. Shalaev <isqad88@gmail.com>
Antoine Baché <antoine.bache@epitech.eu>
Antoine Baché <antoine@tenten.app>
Anton <leonardspbox@gmail.com>
Artur Shellunts <shellunts.artur@gmail.com>
Assad Obaid <assad@lap5cg901003r.se.axis.com>
Ato Araki <ato.araki@gmail.com>
Expand Down Expand Up @@ -110,6 +112,7 @@ Luke <luke@street.dev>
Luke Curley <kixelated@gmail.com>
Luke S <luke@street.dev>
Magnus Wahlstrand <magnus.wahlstrand@gmail.com>
Manish <itzmanish108@gmail.com>
Markus Tzoe <chou.marcus@gmail.com>
Marouane <6729798+nindolabs@users.noreply.github.com>
Marouane <marouane@gamestream.biz>
Expand Down
2 changes: 1 addition & 1 deletion peerconnection.go
Original file line number Diff line number Diff line change
Expand Up @@ -751,7 +751,7 @@ func (pc *PeerConnection) updateConnectionState(iceConnectionState ICEConnection

// Any of the RTCIceTransports or RTCDtlsTransports are in the "connecting" or
// "checking" state and none of them is in the "failed" state.
case iceConnectionState == ICEConnectionStateChecking && dtlsTransportState == DTLSTransportStateConnecting:
case iceConnectionState == ICEConnectionStateChecking || dtlsTransportState == DTLSTransportStateConnecting:
connectionState = PeerConnectionStateConnecting
}

Expand Down

0 comments on commit fc2a78b

Please sign in to comment.