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,8 +131,10 @@ 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() {
|
||||||
|
if !p.Services().IsStarting() {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
unsupported, _ := url.Parse("http://0.0.0.0")
|
unsupported, _ := url.Parse("http://0.0.0.0")
|
||||||
unsupported.Scheme = "unsupported"
|
unsupported.Scheme = "unsupported"
|
||||||
|
|
Loading…
Reference in New Issue