mirror of
https://github.com/bluenviron/mediamtx
synced 2025-01-21 22:43:47 +00:00
parent
9f83b57f74
commit
1e30dcb555
@ -268,6 +268,14 @@ func (co *PeerConnection) Start() error {
|
|||||||
|
|
||||||
switch state {
|
switch state {
|
||||||
case webrtc.PeerConnectionStateConnected:
|
case webrtc.PeerConnectionStateConnected:
|
||||||
|
// for some reasons, PeerConnectionStateConnected can arrive twice.
|
||||||
|
// https://github.com/bluenviron/mediamtx/issues/3813
|
||||||
|
select {
|
||||||
|
case <-co.connected:
|
||||||
|
return
|
||||||
|
default:
|
||||||
|
}
|
||||||
|
|
||||||
co.Log.Log(logger.Info, "peer connection established, local candidate: %v, remote candidate: %v",
|
co.Log.Log(logger.Info, "peer connection established, local candidate: %v, remote candidate: %v",
|
||||||
co.LocalCandidate(), co.RemoteCandidate())
|
co.LocalCandidate(), co.RemoteCandidate())
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user