mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-07-04 12:31:39 +02:00
multi: add shutdown logs in subservers
This commit adds a simple shutdown to every subserver to assist debugging.
This commit is contained in:
@ -68,6 +68,7 @@ func (h *HostAnnouncer) Start() error {
|
||||
// Stop signals the HostAnnouncer for a graceful stop.
|
||||
func (h *HostAnnouncer) Stop() error {
|
||||
h.stopOnce.Do(func() {
|
||||
log.Info("HostAnnouncer shutting down")
|
||||
close(h.quit)
|
||||
h.wg.Wait()
|
||||
})
|
||||
|
Reference in New Issue
Block a user