mirror of
https://github.com/pion/webrtc.git
synced 2025-11-01 19:22:49 +08:00
Fix deadlock in ICEAgent, early exit failed to unlock mutex
Reported+Fixed by @backkem
This commit is contained in:
@@ -146,6 +146,7 @@ func (a *Agent) agentTaskLoop() {
|
||||
a.Lock()
|
||||
if a.isControlling {
|
||||
if assertSelectedPairValid() {
|
||||
a.Unlock()
|
||||
continue
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user