tsnet: remove redundant ephemeral logout on close

LocalBackend.Shutdown already does it.

Updates #cleanup

Change-Id: Ie5dd7d8e5d9e69644f211ee1de6c790f57f5ae25
Co-authored-by: Maisem Ali <maisem@tailscale.com>
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
pull/9186/head
Brad Fitzpatrick 1 year ago committed by Brad Fitzpatrick
parent 21247f766f
commit 47cf836720

@ -349,15 +349,6 @@ func (s *Server) Close() error {
} }
}() }()
if _, isMemStore := s.Store.(*mem.Store); isMemStore && s.Ephemeral && s.lb != nil {
wg.Add(1)
go func() {
defer wg.Done()
// Perform a best-effort logout.
s.lb.LogoutSync(ctx)
}()
}
if s.netstack != nil { if s.netstack != nil {
s.netstack.Close() s.netstack.Close()
s.netstack = nil s.netstack = nil

Loading…
Cancel
Save