Unverified Commit 41728571 authored by Jakub Sztandera's avatar Jakub Sztandera
Browse files

fix locking issue introduced in 90eeff42

parent 90e9b615
......@@ -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