add one more return (#4050)

This commit is contained in:
Nishant Das 2019-11-19 23:40:15 +08:00 committed by Raul Jordan
parent 24a5000e47
commit 7acb45d186

View File

@ -259,7 +259,7 @@ func (s *Service) listenForNewNodes() {
s.connectWithAllPeers(multiAddresses) s.connectWithAllPeers(multiAddresses)
case <-s.ctx.Done(): case <-s.ctx.Done():
log.Debug("p2p context is closed, exiting routine") log.Debug("p2p context is closed, exiting routine")
break return
} }
} }
} }