Log unexpected ICE connection states (#1870)
This commit is contained in:
@@ -597,6 +597,11 @@ func (t *PCTransport) onICEConnectionStateChange(state webrtc.ICEConnectionState
|
|||||||
|
|
||||||
case webrtc.ICEConnectionStateChecking:
|
case webrtc.ICEConnectionStateChecking:
|
||||||
t.setICEStartedAt(time.Now())
|
t.setICEStartedAt(time.Now())
|
||||||
|
|
||||||
|
case webrtc.ICEConnectionStateDisconnected:
|
||||||
|
fallthrough
|
||||||
|
case webrtc.ICEConnectionStateFailed:
|
||||||
|
t.params.Logger.Infow("ice connection state change unexpected", "state", state.String())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user