funding: attempt to send error back to caller within CancelPeerReservations

This commit is contained in:
Olaoluwa Osuntokun 2017-11-30 22:42:20 -08:00
parent 9b53d7bd95
commit 55bdf25235
No known key found for this signature in database
GPG Key ID: 964EA263DD637C21
1 changed files with 7 additions and 0 deletions

View File

@ -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)
}