From 82de843ad910acd0c3443cd4591aae48aa4f890e Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Tue, 27 Feb 2024 04:10:16 -0500 Subject: [PATCH] fix: only skip if we somehow get called while not started and we aren't starting --- service/default/p2p.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/service/default/p2p.go b/service/default/p2p.go index 1657b2c..c6562d2 100644 --- a/service/default/p2p.go +++ b/service/default/p2p.go @@ -131,7 +131,9 @@ func (p *P2PServiceDefault) Init(ctx context.Context) error { } func (p *P2PServiceDefault) ConnectToNode(connectionUris []*url.URL, retried bool, fromPeer net.Peer) error { if !p.Services().IsStarted() { - return nil + if !p.Services().IsStarting() { + return nil + } } unsupported, _ := url.Parse("http://0.0.0.0")