mirror of
https://github.com/tailscale/tailscale.git
synced 2025-02-20 11:58:39 +00:00
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>
This commit is contained in:
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…
x
Reference in New Issue
Block a user