send update on reconnect

This commit is contained in:
David Colburn
2021-06-28 16:22:51 -07:00
parent 083e7cc860
commit b05da63fc3
+6
View File
@@ -229,6 +229,12 @@ func (r *RoomManager) StartSession(roomName string, pi routing.ParticipantInit,
prevSink.Close()
}
participant.SetResponseSink(responseSink)
if err := participant.SendParticipantUpdate(rtc.ToProtoParticipants(room.GetParticipants())); err != nil {
logger.Warnw("failed to send participant update", err,
"participant", pi.Identity)
}
if err := participant.ICERestart(); err != nil {
logger.Warnw("could not restart ICE", err,
"participant", pi.Identity)