mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-10-03 22:53:32 +02: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:
@@ -2016,6 +2016,7 @@ func (p *Brontide) pingHandler() {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
peerLog.Errorf("unable to establish block epoch "+
|
peerLog.Errorf("unable to establish block epoch "+
|
||||||
"subscription: %v", err)
|
"subscription: %v", err)
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
Reference in New Issue
Block a user