mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-06 17:47:01 +02:00
wtclient: check un-checked errors
Some errors are not checked during startup and shutdown of the tower client. These are checked now.
This commit is contained in:
@@ -678,7 +678,11 @@ func (c *TowerClient) Start() error {
|
|||||||
|
|
||||||
// Start the task pipeline to which new backup tasks will be
|
// Start the task pipeline to which new backup tasks will be
|
||||||
// submitted from active links.
|
// submitted from active links.
|
||||||
c.pipeline.Start()
|
err = c.pipeline.Start()
|
||||||
|
if err != nil {
|
||||||
|
returnErr = err
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
c.wg.Add(1)
|
c.wg.Add(1)
|
||||||
go c.backupDispatcher()
|
go c.backupDispatcher()
|
||||||
@@ -727,7 +731,10 @@ func (c *TowerClient) Stop() error {
|
|||||||
|
|
||||||
// 4. Since all valid tasks have been assigned to session
|
// 4. Since all valid tasks have been assigned to session
|
||||||
// queues, we no longer need to negotiate sessions.
|
// queues, we no longer need to negotiate sessions.
|
||||||
c.negotiator.Stop()
|
err = c.negotiator.Stop()
|
||||||
|
if err != nil {
|
||||||
|
returnErr = err
|
||||||
|
}
|
||||||
|
|
||||||
c.log.Debugf("Waiting for active session queues to finish "+
|
c.log.Debugf("Waiting for active session queues to finish "+
|
||||||
"draining, stats: %s", c.stats)
|
"draining, stats: %s", c.stats)
|
||||||
|
Reference in New Issue
Block a user