Transport restructure (#944)
* WIP commit * WIP commit * fix copy pasta * setting PC with previous answer has to happen synchronously * static check * WIP commit * WIP commit * fixing transport tests * fix tests and clean up * minor renaming * FIx test race * log event when channel is full
This commit is contained in:
+3
-7
@@ -341,9 +341,7 @@ func (r *Room) ResumeParticipant(p types.LocalParticipant, responseSink routing.
|
||||
return err
|
||||
}
|
||||
|
||||
if err := p.ICERestart(nil); err != nil {
|
||||
return err
|
||||
}
|
||||
p.ICERestart(nil)
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -638,12 +636,10 @@ func (r *Room) SimulateScenario(participant types.LocalParticipant, simulateScen
|
||||
|
||||
case *livekit.SimulateScenario_SwitchCandidateProtocol:
|
||||
r.Logger.Infow("simulating switch candidate protocol", "participant", participant.Identity())
|
||||
if err := participant.ICERestart(&types.IceConfig{
|
||||
participant.ICERestart(&types.IceConfig{
|
||||
PreferSubTcp: scenario.SwitchCandidateProtocol == livekit.CandidateProtocol_TCP,
|
||||
PreferPubTcp: scenario.SwitchCandidateProtocol == livekit.CandidateProtocol_TCP,
|
||||
}); err != nil {
|
||||
return err
|
||||
}
|
||||
})
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user