Fix deadlock

This commit is contained in:
Zoltán Papp 2024-07-10 18:34:04 +02:00
parent 7acaef1152
commit 06afe64aff

View File

@ -139,6 +139,7 @@ func (w *WorkerICE) OnNewOffer(remoteOfferAnswer *OfferAnswer) {
agent, err := w.reCreateAgent(agentCancel, preferredCandidateTypes)
if err != nil {
w.log.Errorf("failed to recreate ICE Agent: %s", err)
w.muxAgent.Unlock()
return
}
w.agent = agent