Skip to content

Commit 8704705

Browse files
committed
f Drop the other one
1 parent dc2a615 commit 8704705

File tree

1 file changed

+6
-6
lines changed
  • lightning-background-processor/src

1 file changed

+6
-6
lines changed

lightning-background-processor/src/lib.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)