mirror of
https://github.com/tailscale/tailscale.git
synced 2025-10-25 02:02:51 +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:
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user