mirror of
https://github.com/openlibrecommunity/olcrtc.git
synced 2026-06-03 10:59:45 +00:00
fix(telemost): trigger reconnect only on failed state, not disconnected
This commit is contained in:
@@ -336,8 +336,7 @@ func (p *Peer) setupPeerConnections(config webrtc.Configuration) error {
|
||||
}
|
||||
|
||||
func (p *Peer) onConnectionStateChange(state webrtc.PeerConnectionState) {
|
||||
if !p.closed.Load() && (state == webrtc.PeerConnectionStateFailed ||
|
||||
state == webrtc.PeerConnectionStateDisconnected) {
|
||||
if !p.closed.Load() && state == webrtc.PeerConnectionStateFailed {
|
||||
p.queueReconnect()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user