Skip to content

Commit c9face1

Browse files
TheBlueMattoptout21
authored andcommitted
Don't immediately exit BP if ChannelManager is persistable
If `ChannelManager` is persistable before the async background processor even starts, it may not even get around to overwriting the `should_exit` flag before testing it, and the default value is (incorrectly) true, causing an immediate unconditional exit. The default value should simply be false. Fixes lightningdevkit#2140
1 parent 2e5befa commit c9face1

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

lightning-background-processor/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ where
518518
UMH::Target: 'static + CustomMessageHandler,
519519
PS::Target: 'static + Persister<'a, CW, T, ES, NS, SP, F, R, L, SC>,
520520
{
521-
let mut should_break = true;
521+
let mut should_break = false;
522522
let async_event_handler = |event| {
523523
let network_graph = gossip_sync.network_graph();
524524
let event_handler = &event_handler;

0 commit comments

Comments
 (0)