mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-28 14:40:51 +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:
@@ -467,7 +467,10 @@ func (d *AuthenticatedGossiper) start() error {
|
||||
|
||||
// Stop signals any active goroutines for a graceful closure.
|
||||
func (d *AuthenticatedGossiper) Stop() error {
|
||||
d.stopped.Do(d.stop)
|
||||
d.stopped.Do(func() {
|
||||
log.Info("Authenticated gossiper shutting down")
|
||||
d.stop()
|
||||
})
|
||||
return nil
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user