Skip to content

Commit

Permalink
Dont hold a read lock on the main hostmap when starting a handshake
Browse files Browse the repository at this point in the history
  • Loading branch information
nbrownus committed Dec 17, 2023
1 parent 8be9792 commit 7e846ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handshake_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ func (hm *HandshakeManager) GetOrHandshake(vpnIp iputil.VpnIp, cacheCb func(*Han
return h, true
}

defer hm.mainHostMap.RUnlock()
hm.mainHostMap.RUnlock()
return hm.StartHandshake(vpnIp, cacheCb), false
}

Expand Down

0 comments on commit 7e846ce

Please sign in to comment.