server: log tower client error on stop (lint)

This commit is contained in:
Conner Fromknecht 2020-11-25 15:06:17 -08:00
parent 60ad01e9c2
commit 094ce09644
No known key found for this signature in database
GPG Key ID: E7D737B67FA592C7

View File

@ -1707,7 +1707,10 @@ func (s *server) Stop() error {
// tower. If this is halted for any reason, the force quit timer
// will kick in and abort to allow this method to return.
if s.towerClient != nil {
s.towerClient.Stop()
if err := s.towerClient.Stop(); err != nil {
srvrLog.Warnf("Unable to shut down tower "+
"client: %v", err)
}
}
if s.anchorTowerClient != nil {
if err := s.anchorTowerClient.Stop(); err != nil {