mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-14 02:15:29 +02:00
discovery+peer: add logs to reveal shutdown flow
Also adds a `TODO` for checking the err chan.
This commit is contained in:
@@ -183,6 +183,9 @@ func (m *SyncManager) Start() {
|
||||
// Stop stops the SyncManager from performing its duties.
|
||||
func (m *SyncManager) Stop() {
|
||||
m.stop.Do(func() {
|
||||
log.Debugf("SyncManager is stopping")
|
||||
defer log.Debugf("SyncManager stopped")
|
||||
|
||||
close(m.quit)
|
||||
m.wg.Wait()
|
||||
|
||||
|
Reference in New Issue
Block a user