mirror of https://github.com/BTCPrivate/lnd.git
funding: attempt to send error back to caller within CancelPeerReservations
This commit is contained in:
parent
9b53d7bd95
commit
55bdf25235
|
@ -603,6 +603,13 @@ func (f *fundingManager) CancelPeerReservations(nodePub [33]byte) {
|
|||
"node=%x: %v", nodePub[:], err)
|
||||
}
|
||||
|
||||
if resCtx.err != nil {
|
||||
select {
|
||||
case resCtx.err <- fmt.Errorf("peer disconnected"):
|
||||
default:
|
||||
}
|
||||
}
|
||||
|
||||
delete(nodeReservations, pendingID)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue