Refine transport fallback for client resuming (#1597)

* reset fallback after ice restart

* Configure ice for reconnect before send response
This commit is contained in:
cnderrauber
2023-04-10 15:12:05 +08:00
committed by GitHub
parent c56e37f3fe
commit c70a5c831f
6 changed files with 113 additions and 101 deletions
+3 -1
View File
@@ -172,7 +172,9 @@ func (p *ParticipantImpl) SendRefreshToken(token string) error {
})
}
func (p *ParticipantImpl) SendReconnectResponse(reconnectResponse *livekit.ReconnectResponse) error {
func (p *ParticipantImpl) HandleReconnectAndSendResponse(reconnectReason livekit.ReconnectReason, reconnectResponse *livekit.ReconnectResponse) error {
p.TransportManager.HandleClientReconnect(reconnectReason)
if !p.params.ClientInfo.CanHandleReconnectResponse() {
return nil
}