mirror of
https://github.com/tailscale/tailscale.git
synced 2025-04-03 06:45:49 +00:00
wgengine: close in reverse order of bringup
Signed-off-by: Dmytro Shynkevych <dmytro@tailscale.com>
This commit is contained in:
parent
7883e5c5e7
commit
16b2bbbbbb
@ -759,10 +759,10 @@ func (e *userspaceEngine) Close() {
|
|||||||
|
|
||||||
r := bufio.NewReader(strings.NewReader(""))
|
r := bufio.NewReader(strings.NewReader(""))
|
||||||
e.wgdev.IpcSetOperation(r)
|
e.wgdev.IpcSetOperation(r)
|
||||||
e.wgdev.Close()
|
e.magicConn.Close()
|
||||||
e.linkMon.Close()
|
e.linkMon.Close()
|
||||||
e.router.Close()
|
e.router.Close()
|
||||||
e.magicConn.Close()
|
e.wgdev.Close()
|
||||||
|
|
||||||
// Shut down pingers after tundev is closed (by e.wgdev.Close) so the
|
// Shut down pingers after tundev is closed (by e.wgdev.Close) so the
|
||||||
// synchronous close does not get stuck on InjectOutbound.
|
// synchronous close does not get stuck on InjectOutbound.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user