From 06afe64aff7c883918dcb3cecccc971838c4a57e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Papp?= Date: Wed, 10 Jul 2024 18:34:04 +0200 Subject: [PATCH] Fix deadlock --- client/internal/peer/worker_ice.go | 1 + 1 file changed, 1 insertion(+) 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