fix: nil pointer reference
This commit is contained in:
parent
581ff5120d
commit
8f6ebbd3e2
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue