From 7acb45d186250947fe30354fbf68f42c0a98208e Mon Sep 17 00:00:00 2001 From: Nishant Das Date: Tue, 19 Nov 2019 23:40:15 +0800 Subject: [PATCH] add one more return (#4050) --- beacon-chain/p2p/service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beacon-chain/p2p/service.go b/beacon-chain/p2p/service.go index 2c16e4f43..12af0138d 100644 --- a/beacon-chain/p2p/service.go +++ b/beacon-chain/p2p/service.go @@ -259,7 +259,7 @@ func (s *Service) listenForNewNodes() { s.connectWithAllPeers(multiAddresses) case <-s.ctx.Done(): log.Debug("p2p context is closed, exiting routine") - break + return } } }