mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-27 06:01:48 +02:00
multi: make sure missionControlStore
catches done
signal
This commit makes sure `missionControlStore` catches the shutdown signal when draining the ticker. A few debug logs are added to aid the process.
This commit is contained in:
@@ -149,6 +149,9 @@ func (d *DecayedLog) initBuckets() error {
|
||||
|
||||
// Stop halts the garbage collector and closes boltdb.
|
||||
func (d *DecayedLog) Stop() error {
|
||||
log.Debugf("DecayedLog shutting down...")
|
||||
defer log.Debugf("DecayedLog shutdown complete")
|
||||
|
||||
if !atomic.CompareAndSwapInt32(&d.stopped, 0, 1) {
|
||||
return nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user