mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-01-18 21:35:24 +01:00
peer: return from pingHandler if error
This commit adds a missing return statement to pingHandler. This prevents a nil pointer dereference panic from happening if an error is returned from RegisterBlockEpochNtfn.
This commit is contained in:
parent
fb06c14c22
commit
171d047972
@ -2016,6 +2016,7 @@ func (p *Brontide) pingHandler() {
|
||||
if err != nil {
|
||||
peerLog.Errorf("unable to establish block epoch "+
|
||||
"subscription: %v", err)
|
||||
return
|
||||
}
|
||||
|
||||
var (
|
||||
|
Loading…
Reference in New Issue
Block a user