File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
lightning-background-processor/src Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -387,18 +387,18 @@ macro_rules! define_run_body {
387387 // persistence.
388388 $peer_manager. as_ref( ) . process_events( ) ;
389389
390- // Exit the loop if the background processor was requested to stop.
391- if $loop_exit_check {
392- log_trace!( $logger, "Terminating background processor." ) ;
393- break ;
394- }
395-
396390 if $timer_elapsed( & mut last_forwards_processing_call, cur_batch_delay) {
397391 $channel_manager. get_cm( ) . process_pending_htlc_forwards( ) ;
398392 cur_batch_delay = $batch_delay. next( ) ;
399393 last_forwards_processing_call = $get_timer( cur_batch_delay) ;
400394 }
401395
396+ // Exit the loop if the background processor was requested to stop.
397+ if $loop_exit_check {
398+ log_trace!( $logger, "Terminating background processor." ) ;
399+ break ;
400+ }
401+
402402 // We wait up to 100ms, but track how long it takes to detect being put to sleep,
403403 // see `await_start`'s use below.
404404 let mut await_start = None ;
You can’t perform that action at this time.
0 commit comments