mirror of
https://github.com/aljazceru/breez-lnd.git
synced 2026-01-31 20:24:27 +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:
@@ -2016,6 +2016,7 @@ func (p *Brontide) pingHandler() {
|
||||
if err != nil {
|
||||
peerLog.Errorf("unable to establish block epoch "+
|
||||
"subscription: %v", err)
|
||||
return
|
||||
}
|
||||
|
||||
var (
|
||||
|
||||
Reference in New Issue
Block a user