mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-29 04:55:31 +00:00
wgengine: access flow pending problem with lock held
Missed review feedback from just-submitted d37058af72
.
This commit is contained in:
parent
d37058af72
commit
70eb05fd47
@ -132,10 +132,11 @@ func (e *userspaceEngine) onOpenTimeout(flow flowtrack.Tuple) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
delete(e.pendOpen, flow)
|
delete(e.pendOpen, flow)
|
||||||
|
problem := of.problem
|
||||||
e.mu.Unlock()
|
e.mu.Unlock()
|
||||||
|
|
||||||
if !of.problem.IsZero() {
|
if !problem.IsZero() {
|
||||||
e.logf("open-conn-track: timeout opening %v; peer reported problem: %v", flow, of.problem)
|
e.logf("open-conn-track: timeout opening %v; peer reported problem: %v", flow, problem)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Diagnose why it might've timed out.
|
// Diagnose why it might've timed out.
|
||||||
|
Loading…
Reference in New Issue
Block a user