mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-30 15:40:59 +02:00
discovery+peer: add logs to reveal shutdown flow
Also adds a `TODO` for checking the err chan.
This commit is contained in:
@@ -450,6 +450,9 @@ func (g *GossipSyncer) Start() {
|
||||
// exited.
|
||||
func (g *GossipSyncer) Stop() {
|
||||
g.stopped.Do(func() {
|
||||
log.Debugf("Stopping GossipSyncer(%x)", g.cfg.peerPub[:])
|
||||
defer log.Debugf("GossipSyncer(%x) stopped", g.cfg.peerPub[:])
|
||||
|
||||
close(g.quit)
|
||||
g.wg.Wait()
|
||||
})
|
||||
|
Reference in New Issue
Block a user