fix: nil pointer reference

This commit is contained in:
Derrick Hammer 2024-01-07 05:31:24 -05:00
parent 581ff5120d
commit 8f6ebbd3e2
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 1 deletions

View File

@ -157,7 +157,8 @@ func (p *P2PImpl) ConnectToNode(connectionUris []*url.URL, retried bool) error {
reconnectDelay := p.reconnectDelay.GetInt(idString)
if reconnectDelay == nil {
*reconnectDelay = 1
delay := 1
reconnectDelay = &delay
}
if id.Equals(p.localNodeID) {