Log unexpected ICE connection states (#1870)

This commit is contained in:
Raja Subramanian authored and GitHub committed 2023-07-12 10:28:36 +05:30
1 parent 49e72fb252
commit ed867fafe5
1 file changed
+5
+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())
}
}