Log unexpected ICE connection states (#1870)

This commit is contained in:
Raja Subramanian
2023-07-12 10:28:36 +05:30
committed by GitHub
parent 49e72fb252
commit ed867fafe5
+5
View File
@@ -597,6 +597,11 @@ func (t *PCTransport) onICEConnectionStateChange(state webrtc.ICEConnectionState
case webrtc.ICEConnectionStateChecking:
t.setICEStartedAt(time.Now())
case webrtc.ICEConnectionStateDisconnected:
fallthrough
case webrtc.ICEConnectionStateFailed:
t.params.Logger.Infow("ice connection state change unexpected", "state", state.String())
}
}