Commit 67ed3ffb authored by Jeromy Johnson's avatar Jeromy Johnson Committed by GitHub
Browse files

Merge pull request #123 from libp2p/fix/nat/lock

Fix locking issue introduced in 90eeff42
Showing with 1 addition and 1 deletion
+1 -1
......@@ -177,7 +177,7 @@ func (nat *NAT) establishMapping(m *mapping) {
// Some hardware does not support mappings with timeout, so try that
newport, err = nat.nat.AddPortMapping(m.Protocol(), m.InternalPort(), comment, 0)
}
nat.natmu.Lock()
nat.natmu.Unlock()
failure := func() {
m.setExternalPort(0) // clear mapping
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment