mirror of
https://github.com/tailscale/tailscale.git
synced 2025-04-18 20:51:45 +00:00
ipn/ipnlocal: stop offline auto-updates on shutdown (#12342)
Clean up the updater goroutine on shutdown, in addition to doing that on backend state change. This fixes a goroutine leak on shutdown in tests. Updates #cleanup
This commit is contained in:
parent
ba0dd493c8
commit
379e2bf189
@ -730,6 +730,7 @@ func (b *LocalBackend) Shutdown() {
|
|||||||
if b.peerAPIServer != nil {
|
if b.peerAPIServer != nil {
|
||||||
b.peerAPIServer.taildrop.Shutdown()
|
b.peerAPIServer.taildrop.Shutdown()
|
||||||
}
|
}
|
||||||
|
b.stopOfflineAutoUpdate()
|
||||||
|
|
||||||
b.unregisterNetMon()
|
b.unregisterNetMon()
|
||||||
b.unregisterHealthWatch()
|
b.unregisterHealthWatch()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user