mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-04-13 14:39:06 +02:00
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…
x
Reference in New Issue
Block a user