bug fix: ICETransportClosed are now tracked in higher level

This commit is contained in:
harshabose
2026-03-13 02:30:07 +05:30
parent 3eba7d4770
commit 62ae8ecf35
+1 -5
View File
@@ -302,6 +302,7 @@ func (pc *PeerConnection) onConnectionStateChangeEvent() *PeerConnection {
pc.state = state
pc.cond.Broadcast()
})
return pc
}
@@ -313,11 +314,6 @@ func (pc *PeerConnection) onICEConnectionStateChange() *PeerConnection {
pc.istate = state
pc.cond.Broadcast()
// if state == webrtc.ICEConnectionStateDisconnected || state == webrtc.ICEConnectionStateFailed {
// fmt.Printf("closing peer connection (label=%s) due to state (%s)", pc.label, state.String())
// _ = pc.Close()
// }
})
return pc