Josh Bleecher Snyder
b42e32047d
device: call wg.Add outside the goroutine
...
One of the first rules of WaitGroups is that you call wg.Add
outside of a goroutine, not inside it. Fix this embarrassing mistake.
This prevents an extremely rare race condition (2 per 100,000 runs)
which could occur when attempting to start a new peer
concurrently with shutting down a device.
Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com >
2021-01-07 14:49:44 +01:00
..
2020-05-02 02:08:26 -06:00
2020-05-02 02:08:26 -06:00
2020-05-02 02:08:26 -06:00
2020-05-02 02:08:26 -06:00
2020-05-19 17:46:35 -06:00
2020-05-02 02:08:26 -06:00
2020-05-02 02:08:26 -06:00
2021-01-07 14:49:44 +01:00
2021-01-07 14:49:44 +01:00
2020-05-02 02:08:26 -06:00
2020-07-15 06:59:44 +10:00
2020-05-02 02:08:26 -06:00
2020-05-02 02:08:26 -06:00
2021-01-07 14:49:44 +01:00
2020-05-02 02:08:26 -06:00
2020-05-02 02:08:26 -06:00
2020-11-06 18:01:27 +01:00
2020-05-02 02:08:26 -06:00
2020-05-02 02:08:26 -06:00
2021-01-07 14:49:44 +01:00
2020-05-02 02:08:26 -06:00
2020-12-08 14:25:10 -08:00
2021-01-07 14:49:44 +01:00
2021-01-07 14:49:44 +01:00
2020-05-02 02:08:26 -06:00
2020-05-02 02:08:26 -06:00
2020-05-02 02:08:26 -06:00
2021-01-07 14:49:44 +01:00
2021-01-07 14:49:44 +01:00
2020-06-07 01:50:20 -06:00
2020-07-13 17:58:10 -06:00
2021-01-07 14:49:44 +01:00
2020-05-02 02:08:26 -06:00
2021-01-07 14:49:44 +01:00
2021-01-07 14:49:44 +01:00
2020-11-18 14:24:17 +01:00