fix: only skip if we somehow get called while not started and we aren't starting
This commit is contained in:
parent
e201c899f4
commit
82de843ad9
|
@ -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 {
|
func (p *P2PServiceDefault) ConnectToNode(connectionUris []*url.URL, retried bool, fromPeer net.Peer) error {
|
||||||
if !p.Services().IsStarted() {
|
if !p.Services().IsStarted() {
|
||||||
return nil
|
if !p.Services().IsStarting() {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
unsupported, _ := url.Parse("http://0.0.0.0")
|
unsupported, _ := url.Parse("http://0.0.0.0")
|
||||||
|
|
Loading…
Reference in New Issue