diff --git a/client/internal/peer/worker_ice.go b/client/internal/peer/worker_ice.go index 75892ca52..0d4a6b59b 100644 --- a/client/internal/peer/worker_ice.go +++ b/client/internal/peer/worker_ice.go @@ -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