queue restart ice offer while publisher pc gathering ice (#895)

* queue restart ice offer while publisher pc gathering ice

* fix test case fail
This commit is contained in:
cnderrauber
2022-08-08 15:40:45 +08:00
committed by GitHub
parent 939757d2c8
commit 1d2bca373b
6 changed files with 172 additions and 50 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ import (
func HandleParticipantSignal(room types.Room, participant types.LocalParticipant, req *livekit.SignalRequest, pLogger logger.Logger) error {
switch msg := req.Message.(type) {
case *livekit.SignalRequest_Offer:
_, err := participant.HandleOffer(FromProtoSessionDescription(msg.Offer))
err := participant.HandleOffer(FromProtoSessionDescription(msg.Offer))
if err != nil {
pLogger.Errorw("could not handle offer", err)
return err