mirror of
https://github.com/netbirdio/netbird.git
synced 2026-05-18 06:02:14 -04:00
Fix deadlock
This commit is contained in:
@@ -93,6 +93,7 @@ func (m *Manager) waitForTraffic(listener *Listener, peerID string, peerConnID p
|
||||
|
||||
m.mu.Lock()
|
||||
if _, ok := m.peers[peerID]; !ok {
|
||||
m.mu.Unlock()
|
||||
return
|
||||
}
|
||||
delete(m.peers, peerID)
|
||||
|
||||
Reference in New Issue
Block a user