mirror of
https://github.com/tailscale/tailscale.git
synced 2025-04-07 00:34:42 +00:00
tsnet: shut down the event bus on Close
Updates #15160 Change-Id: I29c8194b4b41e95848e5f160e9970db352588449 Signed-off-by: M. J. Fromberger <fromberger@tailscale.com>
This commit is contained in:
parent
f61806d2df
commit
0cce04105f
@ -435,8 +435,11 @@ func (s *Server) Close() error {
|
|||||||
for _, ln := range s.listeners {
|
for _, ln := range s.listeners {
|
||||||
ln.closeLocked()
|
ln.closeLocked()
|
||||||
}
|
}
|
||||||
|
|
||||||
wg.Wait()
|
wg.Wait()
|
||||||
|
|
||||||
|
if bus := s.sys.Bus.Get(); bus != nil {
|
||||||
|
bus.Close()
|
||||||
|
}
|
||||||
s.closed = true
|
s.closed = true
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user