File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -11106,7 +11106,7 @@ where
11106
11106
fn release_held_htlc(&self, _message: ReleaseHeldHtlc, _context: AsyncPaymentsContext) {}
11107
11107
11108
11108
fn release_pending_messages(&self) -> Vec<(AsyncPaymentsMessage, MessageSendInstructions)> {
11109
- Vec::new( )
11109
+ core::mem::take(&mut self.pending_async_payments_messages.lock().unwrap() )
11110
11110
}
11111
11111
}
11112
11112
Original file line number Diff line number Diff line change @@ -1765,6 +1765,14 @@ where
1765
1765
) ;
1766
1766
}
1767
1767
1768
+ #[ cfg( async_payments) ] {
1769
+ for ( message, instructions) in self . async_payments_handler . release_pending_messages ( ) {
1770
+ let _ = self . send_onion_message_internal (
1771
+ message, instructions, format_args ! ( "when sending AsyncPaymentsMessage" )
1772
+ ) ;
1773
+ }
1774
+ }
1775
+
1768
1776
// Enqueue any initiating `CustomMessage`s to send.
1769
1777
for ( message, instructions) in self . custom_handler . release_pending_custom_messages ( ) {
1770
1778
let _ = self . send_onion_message_internal (
You can’t perform that action at this time.
0 commit comments