mirror of https://github.com/tailscale/tailscale/
wgengine/monitor: fix panic due to race on Windows
It's possible for the 'somethingChanged' callback to be registered and then trigger before the ctx field is assigned; move the assignment earlier so this can't happen. Change-Id: Ia7ee8b937299014a083ab40adf31a8b3e0db4ec5 Signed-off-by: Andrew Dunham <andrew@du.nham.ca>pull/6724/head
parent
d81a2b2ce2
commit
0d47cd2284
Loading…
Reference in New Issue